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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$UyjSrEIBM1bCY0AbN7JYR7R5hxD.AmYy2L3TMd8nZKf4yk/S4jvr5','user','ak_8c33f25d83968c59','2023-11-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$k7xktQkfyqrZICpxhPcVJhi85DvxISgPLqMkyf.utCBi26Lx1x.Zq','user','ak_f741370b1f10a231','2023-08-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$66x56AGN6kr9dtHNuaoXge9KYOG3LXRXoo0pfKgzcGwJdC1F3chtH','user','ak_ff5e27ffdbf632ac','2023-05-08 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$OXcS68qUP26g5DQbfkNa2ezjbBvnEvfdpklSd9ZB20Anxzn/Z8BYa','user','ak_d846a23b41891dcd','2023-07-10 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$LToRKFDYSF0pj30lYISFmfQt3nEXn3OqHIW6tggTYHfCKsBP/kZU2','admin','ak_48312d249f258dc1','2023-12-09 10:07: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=33916;

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


