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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=33193;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$HwM6w/KOAPXL4Ey7TZJxjRln1oxUyD8G.X//VFh0tlOm8EcBmy6/j','admin','ak_f9a853f4252084ad','2023-11-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$yswOwq.yMFO.8hRF2b1hIFvRslQkCHyfArQe4vGSYm1.ECFWJrxC8','user','ak_1e079c325d2ea520','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$jOgWiE6XgGP/w4GUtslYdlMtGWI6I/io6Cbrgr.4WfSBKm3/vER2m','user','ak_7aff9be4b036108a','2023-04-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$8IUQapIJ6ATcZTs9oHHGNoL7ZgR68JZAQBA6CdjCWMUZwaWfdH6oG','user','ak_9734594c16a897c2','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$dYJwblI6omPsEsqiPpR0nxRbSvjQanRnHd7M7zZAAqApR2MO9rKRz','admin','ak_f7c4c37916a1946a','2023-04-27 10:12:00',NULL);

