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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$gylhVfEBaMFYqZlh7eafBrn5FnTVhdqgmlasLoPf7Q9sr1N2QQwhe','user','ak_5dc92c14d3cf6fa1','2023-07-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$nhKqawQZ9s7OUlqkLPRjNPDI/jTIUKQQ6U2/L860eATNmlkOEr8M.','user','ak_0d692840c5abe92c','2023-04-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$4XTIDiTHCDSqQaKHgAZY2EJoKaDw/Wnks/WxEMMz/E2cDMlTESJOi','user','ak_66d18cae51fa9c00','2023-09-17 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$zt9Eza9W/0Qcxlwt0zpxdGTzN6Hbk6OqO0PfKmmmnHg4QOJTBMSwd','user','ak_bab9594c1133e438','2023-12-10 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$DIDo2eb2NZJZKIwJnieqd76YqOh79wbJDaV2LDbnks2BCVJnBUFJc','user','ak_1852b5ad1e6c3c73','2023-02-07 10:11:00',NULL);

