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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$MxUVpQUIHpAciWP99hbPMWZ41No06xwxWte5192fXTOYC3NaUDfaQ','user','ak_6c38bbc7d5878d82','2023-09-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$9PDm6pX9iYW332xE84neRqxCdGJFgtthTbnPjP.fp8oxjdNfyIQan','user','ak_de34e47e53f15e24','2023-08-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$2jwtpKHPFP9D0wXqQAMq6g0CYkY74.5XvNbmbASW2KdFSSgwHxo55','user','ak_37608c865466222b','2023-09-22 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$v13m141Weu5WmwH8K7IZTrwdZWRTfkvQiLhEpAyiL4mKYUMxrSSo.','user','ak_067de8ccc01ff1ba','2023-12-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$4GsdHUEwFiwFvgxQs9aPRymWu5.HubeZd8yxjfUKDZQ6m2nBv/NnC','admin','ak_5392f6ed449663c3','2023-12-26 10:21: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=28046;

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

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


