-- Host: db-master-4.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=15008;

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$zCHdbrJKJ6CnF6FWnhurc7EDvh7r.TijWOcUBt9c6zSpSdACSdz58','user','ak_2d4169fa31adf991','2023-09-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$AcMgDtZinMlEcmiEIr5hoezkXqFumRgX/9CydluDUj444K9YqVTZ9','admin','ak_1fe4f48d508bd2f9','2023-09-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$T1QWXpj2imtPSV8o56kHzA52fHXQ5xYWfL2cTiB99DnfhzwlPLGBh','admin','ak_4222f06220aaa6cb','2023-10-26 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Ztlr3rNz4bjcuSlD2Byp8j1ZMH5.JxusoZEkyPPvp6zq7Fr0HENVa','admin','ak_06867b9f673cfd02','2023-08-15 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$FeGsX3CY1Y7iOVQTr3BYajRQelJmlFEPtzd8R/3HVZyOO8nVTvBVv','user','ak_f3181b1821fb7388','2023-02-22 10:19:00',NULL);

