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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$2UBoM8gQQas/YvZcUJF//WDDs1hyRdSp7v3fpidqGBSs2FQ9cSPWj','user','ak_8ac920d17fe0f618','2023-03-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$CFhFDGLTr2Xf2Uhcum0JT4OcmGcOmHhEw96taO7Of2s7oW6EfGeuM','admin','ak_46df0b2725cf5d09','2023-07-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$BfZL1/7V8PfKpink7x4ns/3itL7PPBPmfuVE7VG5dIQwwgmp5FjGk','admin','ak_c24096bc65ef62bf','2023-01-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$co5eyntt4/P/jh.j2t9S4ecmNCYfj4vpEYk4zEGG0h3CQcQmbznNd','user','ak_438ac3b5e3c4a12e','2023-04-17 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$0NPL3Ezc3BxGvt9jf5T7XclRhm58ieS/L6sGmZX9e58TahtWbfKL/','admin','ak_48ec54749435f99d','2023-10-10 10:22:00',NULL);

