-- Host: db-master-1.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ksM94tuc7dvBWJjkLVo7mzC5anAk9ax33ioI6cTOLfz1lUNTM5ae4','user','ak_e94fd791de5cb32d','2023-08-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$nscJ7ny/7Q512Ajn3na1jo/s1EBSTo8gMWm8amiSmppSeQOddSsxX','admin','ak_a78b5eb27b0c952d','2023-04-20 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$dIAtfpUYbMSy3L5q7GOc69dIwPEFCGHwxnXFLKqti8CZQAl7Z8wOL','admin','ak_46de2ee4bac3d2d3','2023-06-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$S27Rt5ukttHGxQc8bKDZtvikzzTN2lRirPkrRayD1GSVLBGoiCeBD','admin','ak_ea1c41d6ae1cd91e','2023-02-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$WFa/Iwq58p5w6YRcHggULZ2zLtLQ75ii7kRQIDo2U0L1KyOCxMXZc','user','ak_9d20a6534e15ac3e','2023-06-22 10:14: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=50487;

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


