-- Host: db-master-5.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=11552;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Ftwf4JQHLeuKcchlILNQhaMRN/s6EwZ1GDv2HNnBHld1vWoFBHUM2','user','ak_3baf24091f7055d1','2023-08-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$x5PdeyodFqdKgQzssSjOnbn5Iyva4HsR38lkMjF9.CxUtcZxu309.','user','ak_72cc95cd4368a0d4','2023-05-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$4ccj7q.A.ihiDpHeoRy8qGry4cKi9MVniynm9DamMwyTpNrrY2w1i','user','ak_2d291cc5fba470b9','2023-10-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$21UDHqYu/wlP5E0PQhyg3vSV7sd1OozVUtZs5k1rO7V3Bl7oB7jmo','user','ak_101b30acf6be0f25','2023-04-24 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$QptN2dGgrgpz0laVe5eeqoym2ZgpsiX0tx30gq0Oh/T3DUpanj2Ji','user','ak_4c531e2cc6e2c2f5','2023-03-21 10:17:00',NULL);

