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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$CdKCZah/efeRxcqAYYH8XZjoZzzT7L6GVHv5SuwCS1ypogUB48IxF','user','ak_ec178d9f7eb4a741','2023-06-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$aWXVYwzZunyqGYGhtK3UTh34quSjtU1QR4c1CCNg/d8sGgqC.uT0e','user','ak_cf7f12dfe9120cb1','2023-11-14 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$cu1CeyOVIbtaKeszwPqUz.C9Wv2tIUwzGLfHZCNMErlw9ECHGyr8M','admin','ak_f281d572e08c3452','2023-04-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$slJB1bjiKRGCnK2YFkxj2oRqT.IwTWD5weQ8Yu8LBlm133sf.rz1s','user','ak_f28ec0c500f4d17c','2023-09-04 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$ZNbH/99jC/FrrjcuinuS54OtjDnE42Hagy.4NmEsqUs6r94S5JHzy','user','ak_2c61a88c8977dd62','2023-02-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$z.15vn6FGzWDoabPcUKpcCqJCalwKQ3U2ybqpr4x9MD3eNMQ62WOf','admin','ak_1f9c61178fec9d6d','2023-04-07 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$aqdcojJ1TnrQcrDd7waCH6cyRpWuKxDcgfkG8CLYvWaJ1I.ktdVLp','user','ak_11a00676cabad606','2023-03-01 10:12:00',NULL);

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

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


