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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$//Blr7xSfw064hd3ntf.x6oaINFRvX4fyI/ICYuExMDeJkq858cgn','user','ak_a2d2b2354c1c4488','2023-12-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$PHdgEJ6CpN/Vcao1FM8wECCk4LdxAuUFloCqSM1DrUOGiJuFaNHSL','user','ak_90203ce54c25e264','2023-11-03 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$0BfFyHeb0Ks8hTmOHKFpHfPWtfCL/aZrIZNmHqRlE8a5epD09u5/9','user','ak_1c6c686e8d996b67','2023-10-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$q8R0XlREfQ1vIFoq1ZX0JHDW38mnF6mUchIDJwKKUIKRpcIKzFLwA','user','ak_2c7f77c68353ff5f','2023-08-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$E9MTuHYTyB6juAN9an6gA1IQ0XhLxDFUQStPwRThnnPoJGUSkAPP1','user','ak_11e78aaf6bb2377f','2023-03-13 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$ao9Zkwi1s6JenZd8BnjpClrJEiPaNwibMy6h8rN2TXPu5WbshQ4of','admin','ak_9a7217c5f1a2b83a','2023-01-19 10:19:00',NULL);

