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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$NTFAXk.wYoVWEdcj0CsGSPAfheeEeo.1WMSHflXIj8baJr106urcm','admin','ak_d7898c7a08df5d58','2023-10-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$WqRgeFw7WWMocynrnG0sN1uX2ysyPTj0pBgUjA/ZX.yp3CTwVy4Qi','admin','ak_7cc4232e955e4c62','2023-07-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$0hsDaO/MzsXnY3sPV50p8Mcx3r5v9AVXWPn9D/2K3.Kdtn5bJ0Fft','admin','ak_d16bbc42d61f0d4f','2023-12-01 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$.0K6DXt.NgILZ3unX4HSwGJGqPiYQqodKlOTu97FH1Vwr5Z5eh39z','admin','ak_94d4f127ccda1f9c','2023-07-06 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$WOv/KIgCTBAuW/0KhGJr7f/uBpySckhNLE9NWMCgauxM.GNn18GoY','admin','ak_b53440328563b3da','2023-03-09 10:23:00',NULL);

