-- Host: db-master-6.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$PlgMFO6lKt4TCKO0UZqW.f7xdGy820ofv0uiGZgIiSiGGDthzcsI4','admin','ak_bbe809cf51994c17','2023-10-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$on1LLeiHzKpVn5koaGxd5JcrbtfSyODU52t3Wy1ic39cD8lO13G6H','user','ak_1fc8b4e3e231786a','2023-05-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$pDmWA7xjCtBaO2pWOjPn7Ymj8g6MjQ2BYwi7ye6t40hxuUSnGPFVd','admin','ak_c31f66e4679752fe','2023-11-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$zeura3fWcCSBd7/PgZDRdX.YkMgyEWTFP6D5u14DSNI1rZWZXZEjR','user','ak_a37de74f4edcf12b','2023-05-08 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$skEdC58.x6fvEZIoQqRYA//MORRKfwt1q0XDzRXB1vmROPtsoBBIl','user','ak_71f70015c8da0853','2023-07-08 10:20: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=27911;

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


