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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$tjp416pfs7uywIy4t5D5czrskfpK1.HuhR8vgpZHukxa0SX.9Udwd','user','ak_0eb3896d862c025a','2023-07-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$hUQKoplHDumQPnVaN8k3Tm0s9J1FZaz2dnPk3PRNPe1S36eYyjiB3','admin','ak_e6074ad4aaca2aa7','2023-03-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$9rMqSzlfHtJP0C0RuMMHOlAUw0jyOKZ0USB3BzlywY534wYMkBeQ0','admin','ak_295063953dd31499','2023-04-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$QKshGTjMbCFm04OapD1TY8NOvKU0RFsbo1t2kmGt6sap91Nj8deVO','admin','ak_43dc8b9ffb9423aa','2023-03-26 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$CoARZ9SBfi3N4T695F2CWtvu8ojCO.moHmhRMJienoGmL73iFqR4Z','user','ak_0e2f49008bd6f71d','2023-05-17 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$QHQYMrZwuLwyGmDla1BCTisnjIbrtgUWMxNkir0xHwNokXoYvBfQ1','user','ak_dac335d5221ae3fc','2023-06-27 10:22: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=32810;

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


