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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$u4gHRZ5krMESn6rQa0xe5u59wMbB.eEv87tgJXj57U15hYi1Q4UtK','admin','ak_f11b42f2951ea416','2023-12-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$5Cj44XxWXMZKJCO62zbhgyMR7Wx4BVwyEZiyXIKtjFOQ/c2EO2W7a','user','ak_7c10848883ebf4d5','2023-08-08 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$WhUQhvqjfAIJx16EbdLu.auFpK2i.QDc3HpmUZ3fWlz7rTJYjyZEX','user','ak_16b5c4f6a932fcbc','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$dRIuo1ofvJoFhzcA4vA8jtr3QE7/YS4cJWs5Y30UvntY7JTiLOlhX','user','ak_9d1b164d079e4cee','2023-01-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$E29vJ8Mj/loSYqTJN/rHcV16eGsWqTLLwaDuHuDXAwnlNmigkW2L3','user','ak_6f019ca39d49acbd','2023-02-21 10:03: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=44293;

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

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


