-- Host: db-master-3.internal    Database: main_app


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=48043;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$WyvWsxmLGi7Zwpo49z5rOH.zf3e9H69tnKwnd9aCo4dVdB3tcbP54','user','ak_0aec447488ed5ed9','2023-02-28 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$IrIc849q7wm9s7vOOcRauCu87/wqm7t0l.9UKI/yd5qQYVfOLBHBd','user','ak_f99fae42914bdee4','2023-12-26 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$y6FHfiFO8EmYPxXPYlIeTenFv7HqqlHmrGPGNburNa2i21/CfGHgt','user','ak_24c74f734d2b2837','2023-05-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$aOd42uzzJG3HumT7vH1rdsRMyZo8fQOB/R1JbM2HD/W85bNVECf0t','admin','ak_6ce82847204ceec0','2023-10-18 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$.g1rh0rl9ds0PRIqifWFBRPfHoGsEV7P1Lkvp3Ki7oE3mWvarzJdl','user','ak_24c7ea383eeced64','2023-08-08 10:12:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=41909;

--
-- Dumping data for table `products`
--


