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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$3AC6Vzvtq24ECe3iMLUaVzMGTFk1NjdrvT0/8IRMx5q0SWR5qSr9Z','user','ak_9095d2bfc8dc3a36','2023-07-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$0xTX/DWc3CFCdSX13rCKGGQEs6GzyHhn1/WiBaGCv4gqmuuA8VDjI','admin','ak_241ccd5d4be177f4','2023-11-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$COcwXmNFxqj.LeB.a6kfb41urASguiGr5Pz6zavTmy2N4SprTw68d','admin','ak_447bf040d85dfe72','2023-04-21 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$Re9gsUE2bNIxihm0/C5ZyQXsYlWUHnCy0qMFSrgWPvVKJS0tiN71o','admin','ak_6af88a0649f8da5b','2023-03-09 10:11: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=39393;

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


