-- Host: db-master-8.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=39972;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$QOkJPbwFkMb1tpuaxFy73h3CS.A/SDoD4ayKHoxKSYnsawIJuRNNs','admin','ak_32aee60291e0f37f','2023-02-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$3JTFkg1wWCYdk1z/OYXrUbOmh6xvYPXI4NiItWvAHIzx88d.g4NTh','user','ak_7855179e1092145a','2023-10-28 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$TilYVOa2mXNKoY5iouWhmCNJUnozFLVQ.yAWYwJNzR8AARzTZuhfQ','user','ak_403116ae150b5be4','2023-10-27 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$goSAEnPn5f8awUgBIXo3rd5ke0y7uUl.FlW5AUd/.PIAyepwdQvxw','user','ak_44bdffbeac486bb8','2023-11-23 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$IJA4tTLQtSE5jaavurGx0pwPgU1hzlpeJLq1kGGfA6P5PDp39okby','user','ak_8aae4774d90c76dc','2023-09-26 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$G2eHNG5UboC2jGg.CfkavH.u35Q3uh0XsyiRt/JTP6JxZvFJ2zID7','user','ak_71634882f86b0efd','2023-11-21 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=8906;

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

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


