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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$oKNyO.w6o6M8CID4U.J7fYRkU1cl9IWStVOzNRqT7mCWbqOQWa/mQ','admin','ak_75e57561b8640763','2023-06-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$1ubc9WRrg51VmqXkq3sf2Gk3lx9Xq0RwMQcVnTZ48Gq2T8zg7Wqc6','user','ak_ea888666ac901038','2023-04-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$nHMDn4VM5F1OV0VCwYz63LPNZ/yyi7/I0Y17ioq91NQE7HzlIPHNw','user','ak_931f5b5eca6ecbfb','2023-11-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$g7cOpRwEhqfX7gyyTBjv5pPoSuKy7XnTpAR5k/9hHXCunS0Prj/0K','user','ak_cbc1b6d304facfc6','2023-01-12 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$4Y9JVdpN4XkbQOxGZrunRycnT2QuprY/yKczoYxOfkS300DMm.tu7','user','ak_36e22193334e0976','2023-09-15 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$167b2.YSiUFrJcM4TMWvdlV8IJRu6ex21piq1BToyktUAMffvcQBJ','admin','ak_ab1591e52d77bb5a','2023-11-26 10:06:00',NULL);

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

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


