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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Oe5IAakoiZmbygF7MGNSK0FOAXdSzxRH79f7DK0l2eeZxgs2y5Jv7','user','ak_3f1c298d124a714c','2023-09-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$7PoHR6VlZvwWx3AeS.U8L3PDpGX.pmVskzl3sqblNbv7D59sbQfa7','user','ak_cb88c322ccded19f','2023-11-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$QH8TI/squqWHX2kMByyFp/7vujH/0gzCCVQNj2f514SdsnZyfKHU1','user','ak_c5e321ce43b0cad3','2023-09-23 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$UlwIJQ1FzR2IIjzCQpFH4KbvJuIQonlxOHoHxtiNjxFCOXq7OkVub','user','ak_a63b5b4fa9c14c41','2023-12-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$6qblzLuPySADiqA8Bj.q2pSUyTD6a0AYyeugiyzuBwvAYZMeI9klz','admin','ak_bbdbe6f0a82199bd','2023-09-20 10:09: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=24013;

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


