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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$qSs1LyIO1BrlkoyhCM1fdv0Ao9Y6/m4oQA22m68FE326KLSwuzkJJ','admin','ak_85acbd1460b50fc6','2023-07-10 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$P4S5dx773DL.CaVMJQOHj86aaXVfYRytXnyfM3dLEuntytZ5k5vVM','user','ak_21766606bd3bbf18','2023-10-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$4qEbtlFp6ojUFwtDiRdJaMqymArp62IwIeY2X9Uq/MJ8W444P/70M','admin','ak_4b5426b10231cb4a','2023-09-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$W62DSA72Hk9jAvD09ae9TRY/1IYCFiyQFr03/Wp3cgYMqdeDkeNvj','admin','ak_fd6ca28e8b0f7af9','2023-09-22 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$0VAIjKLuM5xHZ56n/leV53g2CvpOV4RLaO3RBC5pGrlnA4VFRjOx7','user','ak_77db9810812b6bd0','2023-04-02 10:22: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=18871;

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


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

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


