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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$RWBMC0RMzLT4.7EtCiqU7jNWlZZBR1EwvNkNFM.QJxjVbBuhNhxIA','admin','ak_72e5cd483eda2069','2023-01-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$UXUxGfnEnYJz15qZ.TecMf3eD/nzSQbceXqjqIs2oC51qfSdZbDJx','user','ak_b6a0910f21fdd06c','2023-11-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$NqOWfUvaVaG8Z9sHDbA6tdoTOs46ejxSZr2RUkqq.Wnv6z995xiYN','admin','ak_4b9bf76058bef2d0','2023-10-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$DWy132QnKRcSCEAs4gCxTR1G0UWqq.XdzyI2cONGvI9WVZ/5LV2I0','user','ak_dc1c32a31b3b5fe1','2023-02-02 10:04:00',NULL);

