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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$hAnwUAJ8KSz26vAb.JqRhXoNvebXc/3m9bh2DAHEqvKIHgfqhmeUp','user','ak_5eadf0b63c5b4ef9','2023-08-11 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$mLsO6/4rj3kApMifhHdeBZa6zLU35F6EbNyMgYtE1PEcJFfNRx.eZ','admin','ak_0bedf760a019a705','2023-01-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$p0YqttHWUuXhHbrlFfUArk92OWaZ4OWXs2VTt1qQTc2SPaPAZCBKj','admin','ak_827e5314067310ba','2023-12-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$lj1jvNxKq4AhFxoCBnQmPKjlBa6VySwLNcPDFxVieA0zDEre6/yG1','admin','ak_01f9f7fc2e89864a','2023-12-19 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$eoTHwwkI841NhmrHzH4/vITj0hMF6gQQ2yGrJ.suF9fXP0tdP5HoW','user','ak_8efbdb72aeb70c5a','2023-05-21 10:10:00',NULL);

