-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$De8KawFabp7rnLXjl7kuA38v6BSwaC8eKxbqhhkiXxFkspk5G2irA','user','ak_2ce79896fadfa2c1','2023-01-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$sYrPIjaGioXiBzq2TEvkxvRIaRIbtNqPNc.CylkBAZKEfDnb7.yKh','admin','ak_6a80bf911eb1fea3','2023-09-13 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$cv/wE.NUTeyyltnxlPLAl7g7kik0bAqPS8rMNnZCnAXL6IepZh.r0','user','ak_1b341a4a4a13f8de','2023-04-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$AyYjloPaAiiNbCdnLqkvyi7.OiXwB8UJyn6RpeQ88Y0gMkdxH7VH0','user','ak_a518087cdf794e2a','2023-07-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$M3rdw17IXMxXHQQqVT/UfnvkDW8AgcWTOBxLJi6CVUutfWeJbssW5','user','ak_168689749bacab82','2023-11-13 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$XvVfKQLEcbQ5/uZpMnwcKkT70sx6ZK9EIXTT89WRjlDyLfIwnVbUy','user','ak_4422c42575f8fbc9','2023-01-17 10:00: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=18565;

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


