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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$cDSbiaVYATGsHth8xlfqs0kuks5t5TYzUYh.yAYRg.1Rs8UHLu1pM','admin','ak_19c89f27deed1cc2','2023-03-18 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Xzo2S2nW5NokLzbu/gT6uxz.F3eK9BQ08WTmbuWL93SDcEK7ghay2','user','ak_e88d39d34aca970e','2023-05-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$DTzsH.f3SDU6Rzedspw9aUxbt58VqplbFhHv8S3tfUVIodywoPb29','user','ak_74eab7a450ad4e07','2023-10-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$45a7C4qkDd5VoLu8oXGid0qgstzl7QQPng4Clm5wy018ZaLv//i.K','user','ak_4cf0b13332c1cd3e','2023-12-12 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$97jMf8uhdsExHIw7LPfVduBYWHYYkPl1ce45zAZEb8uM92UbzVExa','admin','ak_24ca39c7678a0d8b','2023-01-13 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$ZABoVB48ZH7i/ITRoe106LxmPgOGvmHhY/sLAK/fGho6Kfv4t4NTW','user','ak_500ccdcd30d9f573','2023-05-05 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$Xv7NrXM3Anxc3ficm1MtXNESZDckIDdtt2mYmXWFEz8TjUg9.KOQi','user','ak_48eda9f2d2eb0961','2023-10-23 10:00:00',NULL);

