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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$K9GSyjL/vw0u.6cUO/Vu/Q2ZxAGecgzsnUtUClbyrTHFNb0cvWscE','user','ak_35db26006f1c7b94','2023-09-22 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Pcpebo7ePIaaKs8IwxSkW0h27z9yQJ6uIaPJdkdJl8rm2pFSLtCUi','user','ak_51cdaee288f78d65','2023-11-16 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$fJ/Sj3QbRrq79uGhUwADayd9x70IwnhArrvxNA7fgpQBYLuNBAuGx','user','ak_d9071224819f2111','2023-04-16 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$dr8cTkskqSI90HG6Md1aprOLfgQ44jdc.51QackbKZDt5srSXeMHe','admin','ak_4b58ae4723b1cd4d','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$1Nn77OLvaWOUdA/BaRMXJyKaV89RSvwn1HP3BsbU/9N5GHG3v.OB5','admin','ak_322e89019af9b21a','2023-12-04 10:15: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=5518;

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


