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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$W74pg8KkgVid1HQAz1JSbd5AD9T7pbL/95AuFTH6PI1fwZemon01z','user','ak_fd4027d68fbdbd3a','2023-02-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$uQ3aOHpaiRMpNoQf1SEpQsxBlqGAXDHnr3P9GjxoZV28lINgFToNV','user','ak_bedb2b61852bdb07','2023-01-11 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$CymJdAk1sYFLHuEwr0a2VLrQ8D7vYBF7csNfP19//SWOEXuAC4Oft','user','ak_917cb549acb5905c','2023-02-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$UQFomnHHLeZcIF.CSzOctkeMJ7IshOpkHfBA7sA1MQSIP4cR5Ih/e','user','ak_63f2c68655c1c9ad','2023-07-27 10:08: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=35684;

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


