-- Host: db-master-9.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=39988;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$viwP81NWXbO2hUVE9wE/R5JVHBQ.tqY2xmBpQmPx7jzl6MGC/j13H','admin','ak_c657cd3f5cda7f5b','2023-11-22 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$KYB8Yy.9WnvLnQhNClZrwAhJbenVnof8kIQYHOR9A085aqKzsPfhV','admin','ak_4fc14a89e4e5c71f','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$s/HzNScz98bWoW9zInYqUNuEM3P/3OmXcrm.WE/L.a4QIPaHSO2m3','user','ak_71e664aa79cf6011','2023-09-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$qkDNOEPkAWgO7rSVBem/rbpbS5g1fMgzDWR9bl/OSfqEGCUsF/xeV','user','ak_bdb9a3009c32ced0','2023-10-26 10:16: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=6550;

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


