-- Host: db-master-1.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=12129;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$XtcFK4GnRFKXK1Rr8V5V1hIqqgEyV7PKcivuIEqzh5.XB37m7XNSF','user','ak_a8c48286b8eb9b7a','2023-09-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$BFcMnmhy10jdu6mIB4IT.ZTfVxqz0CIM0RmJY9AWoIgQTuZYU.vkw','user','ak_bef95685c3fb952a','2023-08-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$Vsw8vPk7wk3ht5Aab0vDiQ7dzBwiKOLVL3xOCwsvy1fu9/BHIYu2a','admin','ak_804ddb113703113e','2023-09-12 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$JNby4B54wcP2KRu1e7ys2eQw.Dk6FU1qJuTpt32YyxmILkrX9MnjE','user','ak_82a929af5b9f0577','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$5q6xOgwTuBGdEeLRyJ4KgA5.Z5Xlt/NVq72zrQWgHNqt/vfLo24YA','admin','ak_48e33ea73d832c0a','2023-03-11 10:10:00',NULL);

