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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=47735;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$TrlMzXa8nWVZHNzfVW2rOelfTvXyYDomqy0wRck9URXLcUyHKLMMG','user','ak_4dc7ae1318921375','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$1E/AA9TsDJ31ayeigjEXlaj1HYgD7IeT7T.Sp4WDsdmJIxNFoa2uy','user','ak_d7e138a2224af736','2023-10-11 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$WtfFFA9USW6.OHfZzKlQJyhkwEwj0EYHxEZ0dYgTfrNOmBlUKGqOt','user','ak_8d1fe1ae3661dce2','2023-04-27 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$eRGeB/mymaU4SxBbQhqEPhBc6X60a4MUrmX0WECk69AZHDhEU7Esl','user','ak_46635ed74944427a','2023-03-17 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$FZqriKIWYSLnkRPTbpgDcFqiMxiAYdUlR4E/mCnd6Nd/PpYJccEfH','user','ak_f176bc5870b1b77a','2023-09-26 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$ELJ9fwajojZuPZTyeZdtsy4jycGSl2DQRt0AydO7H4QpQvq6KracH','user','ak_ae8d0c2de215773a','2023-05-01 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@internal.io','$2b$12$hvDRVNk5Xu.KuzXqPyuppJbgbkkyupa.FEERYV9Hk4WXS87RYsSGa','user','ak_0b8a7cbf2d4d76ec','2023-02-22 10:10: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=46330;

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


