-- Host: db-master-8.internal    Database: production_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=46783;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$K9FWo5idTu/MFPAR3EGBmjjGtH2jqg/A9OVV5ztF.f1llftbC1lPV','user','ak_78aa69fc26b7dba9','2023-05-26 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$iVrAgiAzaQWzHzhdt5w.vSHo7nVEw2v8I6NeImPMpt/Wu0sqHKE3w','user','ak_617f5662a7f9dabe','2023-07-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$d4veRyFDwWeUaLo5rYXyYeLkUV4olz0tAIXEDtGPSG2DhVfsr.T6b','user','ak_d7ee414d04bb4685','2023-01-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$DqXCHzxfwCsIwEnKm87COByGbWRYVk3NpsjHnBaVmwmZuxMoM4fgU','user','ak_adef4708795812fb','2023-08-28 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$7Ve6lbNxsU9.6S4E1xFxGeXLeU0YVhP8Qzq.iSxbkTJn7dfLSoMix','user','ak_39f3d2213cee2d1c','2023-02-18 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$HaPbmk56vQ1O77U/K2.9vwWWfqb94K3R7rHd1.uGvLG/VN8p/VrTz','user','ak_5f5a6c83cca7f49e','2023-02-27 10:00:00',NULL);

