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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$to2qA5XeHZ6lHDawLbHYESTbovL5Hn2M2n8L9KgDahoYJZD5L63Gu','user','ak_ea009f3b33235a90','2023-11-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$mlRx4n/s6wl87AZzW5rTGbTTkwePnzjHghlH90T41IeRixdRE/1y6','user','ak_012bd32bb94082e1','2023-09-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$fOkKasWn9.vkrcmA3WBFudl4S/xWPYsvbZZDQnQ80OyoNkQUCbCpi','user','ak_50d978db4106b0d0','2023-05-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$9TzhMoWegZVRPGIN2LzloeESNSW0PDQAAGMUYUG5FUqrCB9GqMLG0','user','ak_5aa95aaffaec1290','2023-07-07 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$odZbegLY5bCFtNKPOLmnXSg6iIuFjPC3XvzbGcAvrD2cq0fXbCidf','admin','ak_8fbf3a9792271796','2023-03-13 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$MggfV68ecZKYRAziLpvLFZu4fnPT1coFYEwG5uLb68HLWWzCmF7v3','user','ak_36a9a73690a63686','2023-11-04 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@corp.net','$2b$12$deSIc.9Og0SA9pp/okso8MRIdXvMWYIPSb7XN7fFRfnR0fRkEx4fG','user','ak_ece914c64dd2eeed','2023-06-15 10:10:00',NULL);

