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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$IQTfLfXkpejrVUwZH3bZBdv7zvvxTcWua8eGZMUeVfw4QrjZ4JHki','user','ak_e61ecf9f14d689f9','2023-12-16 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$rpQCtLRitZ8CFFqGm2PWhZFvsbijJsIMX.GOszxEThVH07tNv4OEw','admin','ak_525fb16b926fe40b','2023-10-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Mhnv/QE7.7E/BqS6c7bLjIWkpUlKR70bZCjsrvXudQIzY6LJ/9AhQ','admin','ak_268dba8990b39f01','2023-07-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$GOi02QMfrgw6FtM.eM2edzXzjVHREvWaeP80Wqh/WzNLOfCwRWk86','admin','ak_6a286d326753e760','2023-03-18 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$rU6wUyUky8WqaGcHHsy2KJ/QhokPWAQ57ZX3OQKe26FglXJdnjsvC','user','ak_8a9dd30d14054b4a','2023-04-28 10:03:00',NULL);

