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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$zbb0xLNib1fn0JzoxJfnr2q1AL4hXr2DBhheChwnQuMiFbi.rT/wU','admin','ak_4ddaf4a902d2e77c','2023-06-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$qoeMVL6Ksv7HBLJkLMQFSCKdmxxXZsoQb7Bp52v48vcfDrX8BjXJI','user','ak_6a6b92f394b7e678','2023-11-19 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$TfdIooBy7etKipo3bGKkv5b33oQmSzJHfX/oWJ41AiWLsfUM/Zf/q','admin','ak_3a0e0db019019f83','2023-11-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$c1O3laXbler1uCPvcQn5K0fZhdKJxVm6jI0md6XXXclK861pUXLxM','user','ak_16e6e76b573edae5','2023-12-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$rAgt.nF5ACMWB6ZAHNn/.uKcO1XjPxfLA6GWdhe6nd0m8DvEzA0Us','user','ak_1f2b4af9d7a2eabc','2023-10-16 10:12: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=7185;

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


