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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$fTblYnFvypVCUgWV3ucLMIkVjPCGqHlCryEAwpUHn/Yh7dWxAlpQI','admin','ak_107f48da2c6283ff','2023-04-15 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$ia819zKpoSekPjwYaXBXITIQrFBXRumX9fwFK8fM5EAjf43oCvnIU','user','ak_c77c5e7131a495e3','2023-09-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$fmCpPVYWy6Qo1.zFy0M3md2eCjkeMY0Jkr9cjlr.LWez6z/OKp9/d','user','ak_578e85b062f32104','2023-01-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$1ieqlYaiaS1VKn.nuQj/llg1hDgZGnsTBhcJdo3KqY7rgmBDocDLT','user','ak_49c1d3bc5c09afe8','2023-06-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Ru.bd8JOeeAkLP2nAN8Siqry1mUeIT7fJPAGglOFZARXtWMToH./h','user','ak_4ed41693508e5898','2023-03-18 10:17: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=20469;

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


