-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$sncdBn3C4.Fr8oFWUCnxKJGeRaAGgClbxPicsSg5dYxb0H9FaIUeh','user','ak_bd8c5ddec95df1d8','2023-10-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$kO4meElux4ppQ41858Wo5UOMM2YKKS95grUzPtkDMtVQMVbcO/EHV','admin','ak_8008b2e35f137586','2023-10-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$seRh5TN0/6FQQfYs4IMkrPMYTjX31vq0FAyiNMEniujI.ggYndftr','user','ak_9d7d38b3290ee621','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$yc3gnEbt/n2w1VQ3gZj1izcd2gVmcUBDS1vO6.uSN40/popA.e4c6','user','ak_5a05f47d2c3d2eeb','2023-05-08 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$mdLrxcwe2Olxuu/9uRPoRhMUyqsWB2mKtneoEws1xO425PsMYvNRO','user','ak_3331cc5454170d17','2023-02-01 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$5I9X4YaLwgKyF7igNnvgwmX6gCF9WGWy05l20U1mbNA8j0QBlRurE','user','ak_c5a8b3e2d198159d','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$3Ux4J96jL/1b1HOiBcpojRgt7XT43CgFHlB18.rGpJEwaf7K2QHAN','user','ak_66b49212d30b3cb0','2023-09-23 10:12:00',NULL);

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

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


