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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$q0mUX69YxKZLawBozmW5xYNi7ty4ojK4Nr68Vekm9ha/5aCRvEOde','user','ak_e33694426f623fab','2023-09-26 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$uaKzinM.tHHXV53ShZOn30SNMqpwSiJ9ps4apgvcMuTHV2U700pz1','user','ak_4a19f5b26bf8c09a','2023-07-24 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$tYhalAVqQMuxXt80GOimFtseNvj79kB/0TzQT84lDjCh/c1FBvuqB','admin','ak_e05fdf96dc162042','2023-09-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$vJip797Lgj08newzuv84EAO7okudI1hcHuX8Kt2slLYXauLLLSQ4b','user','ak_b9a6a799fec60748','2023-10-27 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$0r9qBAei.LMZazeqrvRor0m8/FmFD8a7H03c5A4PYeWRA375SHKL6','user','ak_bf83430e24a4b1cc','2023-06-23 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$F3HnKfLtb5Bc0mLTRzdOKcWIQCJjMYTQikMTnCZwzk89pyu0Hx4t0','user','ak_0e28df05d7169677','2023-05-17 10:21: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=1386;

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


