-- Host: db-master-4.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=43134;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Mu1sSJfKIj/.udlxApmwhjxsxw1quNP4cZGycXbiT90RLuPECkE37','user','ak_5a1bb24de0a6db42','2023-09-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$V5Srffmuha8wMhfUN63PPW8FJFb.yKsARapH5YOXNgw1IZgX.o71s','user','ak_05f507a6f1699c11','2023-02-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$SlFxrLU1T3SKsSK85dW7rgnMbmw58nRayV7HKEAD8ww52W2VPQsDn','admin','ak_1a6e3625382fb3b0','2023-02-22 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$gEyq6vej.oZk4RgvEmo/F1If/.26166NHoxW44aLri34aoVnpwz/.','user','ak_d743a158e6c0dbf2','2023-06-01 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Yw2l.q.ZTIv3Jldnljyln/5IEh0wpBZdh05UY64CaSfoCR7aoaPUY','admin','ak_ee2ca1933d6cf0a7','2023-06-26 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$bg.L99wRuYeSzy6ooDVT9WKUGz9TOo1kaHKbgNHcmk/03KdlMwRoK','user','ak_8e00b9dd987966f8','2023-10-10 10:11: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=29766;

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


