-- Host: db-master-3.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$yvIMz6Jq2X1Mw0NHEA87jFL95IrO/jsb65CPZqD20yAX8Gh75a5Xs','user','ak_c9aeb45dd53e3c72','2023-11-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$qGlzh7pdeF4ILlEWdp/Bo05ye2jrHVl8Tj6dDgyYOhvT8kJWnQEOc','admin','ak_15865e8add93cf32','2023-06-15 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$fmpfPfXZJu2aIVBNAQYo1gYfjs7Q0vHQgKTk69KGMFTtjOF5MjPhR','admin','ak_ed99e82cc3d46901','2023-07-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Zj/j0EzSzb1wLIqWPrp4M9ov/oZbKDsZAmpu3Da.3kysqhpYfaVXp','user','ak_dabaec4f0782093f','2023-05-01 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$tZkVb80A9.12Cf5N/4e0bBWp1s0p5YHxOqSzIqVKgddqWbyspM861','admin','ak_098b7d7988a8eb23','2023-11-16 10:04: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=17938;

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


