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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$S4tRUmwsQygDQLyOKnEhLziaL0zPpZjqApeZZxz0Qk/foIO7V6oeO','user','ak_69bc0676c4ea780b','2023-04-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$/jC7UXz8e3OzT/WzBeKPtm4AtlMR8/wlaJ7O8fQcDMnPhsL9RBueQ','admin','ak_2867aa5340063c00','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$M/Uq9LTmgLKEygwi.U/QLGeIxXHsk7RmyIoxK9rqr/hLJIwjiGri.','admin','ak_475d9b50c04efdf7','2023-09-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$rCYYxdgR86jDW3VG8aL9rWqr/zdUO/MDslp9LH7qrPu33Okw7fA6U','user','ak_9858eb26afbd12a0','2023-08-27 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$0x2ws2VnhbKrBBGxbC/UKlygaWSjIMFwjEW.id8SOO0c51mzNdxV3','admin','ak_e0e8d391894cb2ff','2023-07-26 10:01: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=13941;

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


