-- Host: db-master-6.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=13466;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$jBlZGQJ6s790pntwFYFkLMB6kCY2fsq52I8GETQgpx1IOxBQAbjR0','admin','ak_59145ce3986d3891','2023-02-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$jdDnmrDDTwP3dodNHR89y6P.msOxwo9MDt.TC3vaeayaLNmr2e7UH','admin','ak_6fd0bc13058bf07a','2023-11-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$1gDqxWrk2/MS6QZp7ZDUm0Ba8/h8LUy0gVfLfijiIJUefSKAFvt/O','user','ak_2912fa00321ad208','2023-03-19 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$hWUwUfrOVSAmgzHB9BPCxFbTqdpXEhqHYTaVRGO9Vh81n7hH9Y3/Q','admin','ak_70263a7747aff6b7','2023-07-27 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$2gTRpV9OZphEqcpwuhtcQa3JtU7URS2bQgnqnl/xtuhLwWav.Z1Eo','admin','ak_8559eb1725f10866','2023-01-03 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$P9cXDoS/JOViB6WH7ecuZWSUGeYegS1N2Tq01D00QOCLhSYuXWApV','admin','ak_145c081e5361730a','2023-03-25 10:14:00',NULL);

