-- Host: db-master-1.internal    Database: production_db


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=21921;

--
-- Dumping data for table `sessions`
--


--
-- 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=5168;

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


--
-- 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=24886;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$VC3vvCu8wEzWk6WixSJqCnwZv6iKWyjqwglfaJLBaPhFKqbjhR4Jm','admin','ak_56894ed2e288c6ea','2023-07-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$/w0mB3.k7ShvyfvsHaq/AXII0EWH5FcPMfsUfV8/GrCsqVIV6SalP','user','ak_6cb0eaad83c7592c','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$4lQRudfoj0ENsSw/iRFX1G5WFteXsCRF1Vmkj/IT7dVZ7slaJIFiP','user','ak_2cbe83176b9fcee2','2023-08-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$GOKkWERBAOW06v/QcnlcJdkLL6HZQD5g1hlpuPLzVZoaUM7HIzexd','user','ak_570305b35b9a6305','2023-01-03 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$GFnmudJVwPnS07TZtRgjUyKVRRJwB1Z8z1MJSUQg.pLhF/VVWHpJK','user','ak_a1f8e1497426ebf5','2023-03-26 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$oCbNhdW6MPBgw5gL5aBQdBl6qyvVG2O.JpVL2a5Wv/wYDlLs/N2E5','user','ak_83cc32c7b4a7c96a','2023-06-22 10:08:00',NULL);

