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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$S1L3Iu7LPked7MTGEGmbyFVVp1Vs5BsH/gurD6k4UdBwA507b1xAg','user','ak_47b0063fddbd36ff','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$rldTMcRkappj9mIc2i/8BNC6c6/ksA69QKSyfQpjyFkfyfz8E9.o0','admin','ak_f8a276bf3b22a4cb','2023-11-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$KuYM5Q8uz4wdpANIpoLCO.fA9NXQKmhu2dDvNF4ULdf7bjZCDSK8U','user','ak_d41bf77850a6813b','2023-08-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$a4ShanaMQ0/q/ygiR1vUkpE6EQxUPD4UppgFZomKulewVsIacGGNu','user','ak_60d1234f1a7b9720','2023-09-19 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$DuaL07GGk02n1PWwRfVzIdnELcztxRMKom8PKrCY4r7eZYlh2THhs','user','ak_274a0d9a73b32ee8','2023-08-22 10:14:00',NULL);

