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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$vwnwVLxWQnu6qlc8YEOeNxelcBMoX.0s.WO9tmjQMOSvWeXGyLfao','user','ak_05445de314325f71','2023-05-18 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$DSrm4eWXPGG1wks2op7dp/ZG3lxggJW/d6HY1vrWwUd/vLZtszaN1','admin','ak_5e1a9a9163bfe8a1','2023-08-17 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$.vSlH15nC4qOttx/12tx.G4ybE6fzjL99LOVRPRM5385fpGkBgGms','user','ak_590a29a9eb4be3ea','2023-05-21 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$39DRYkd3xvN6SLw64NpXEN9oDyMMhLdlQ8OQMQjcuXO4u.ePRYoSD','user','ak_08c374c31f6ba631','2023-05-08 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$tS7ob1eVQpo2zgwXt20JLA/qqR1p1jMuSSBxOkZfqYTHn5JuPrmXi','user','ak_dd94f7056c241513','2023-09-02 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$s4QImZVY7hLH9evb0Wr53h5K3mcC4wSXtMVjsZq1JJkcrX7wCQDf0','admin','ak_57d953fa714a70d3','2023-03-16 10:15: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=44570;

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


