-- Host: db-master-5.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=40458;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$rOOHFrUqZmeJrrjfq3Ln/qrdVelYBMxqDo1Z2qQmyEH2TKZ0AJH8h','user','ak_6f2b4a15ad71a6c6','2023-05-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$SUKSJn9ntTiZuXGKjcDSkqnEw2JFJO4bdI/SirhXEzIJngcyaQtgk','user','ak_52eed322c6adab42','2023-02-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$SH7MYCO3wdL6XQK5BP1/Hg97FM7icWVPwTP6F8P/JLqOUFQXMqalR','admin','ak_a9450397cc2e2d97','2023-07-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$D0AiEBiInuYsVAR8UT94gbPl361l4Vcmntr8/SMfEteQHYhfRscke','user','ak_3242b5b6a65f0bd9','2023-09-06 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$ybBkbQb80xc6I4vQG/vEIJ5.nUz8pBv5ngWkkbHfi6iibAYq0UdWC','user','ak_eb5008f62d22669f','2023-11-01 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$xsYw4siFXuvef5bPs9UtM2I1Os/28ubLQvJuXcruPp2XKx.IREtQW','admin','ak_dbd3268cb13094ad','2023-11-02 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$Cd.eiJukO5NtJLoSzqEH634WtI3oTifgQTA3hmFZEegvmwQRVV4uE','user','ak_2c10757c95662f2f','2023-03-05 10:01: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=27615;

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


