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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$nZRA8yV7PdO91Vow9.aMvfU0ehoB0DHkT61LwhcGe/Sm0Pg62vn30','admin','ak_96feb0b7aac43568','2023-01-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$ky.Izq1WCEzXiwtJk7uDD7IO7LtSk8wDAs3/tnHCuUOZOJJ6K3CRI','admin','ak_661dbdeb22f23b33','2023-07-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$NTvD8./JtzeDGrNHPS4AF0MNHG9l/28w7dmD72/MaCkXqmSOCZev5','user','ak_4dbeb9baefcdf8b4','2023-06-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$U2t2.ptcrzmvP6394r8.dN5PqLwre5Vsmol3PyKy/1TJDAEASxfJ2','user','ak_fa1068872a985df7','2023-07-19 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$963pXlRmjGOObyq.8DkDLVKsnbp0si/a6rxQ/0biPqPPQ0PCjN3oJ','user','ak_dd6aa37b8205494d','2023-03-20 10:14: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=25044;

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


