-- Host: db-master-2.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=25830;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$he1sR9lv1E0jkFzp/ghwWYSorP2bB.Mz3B69kFNPdvatUDhFSkB61','user','ak_e4cd6845b51bedc3','2023-09-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$vAQIaXxqXBSY0xcDHYVnLzMGygwEkUCLOSlg4lapXjTXW40elrGXo','user','ak_2e491bfeb9d441b4','2023-02-27 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$SiLdxWwWcHtKuGuMwoSMbFvMHBxJ04NEBho1YcDas7aNPzOTkMAd4','user','ak_1b4162e166e82b68','2023-09-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ThUbxLIAQVop8gjEB24YoMyb/crheDyw.EzuEexEYbF2yGexn2INE','user','ak_6e8c09cb2158a005','2023-08-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$AfWA9f1bF9GZpaEJw9IaI1ihOoyjB892Ek5rvk3Z1zFbRkVQvid.0','admin','ak_8a40a7e784686838','2023-05-03 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$6PAF2ATf4FH.rh4RjRP4xSS4Cn1mI9C3i6A0.qfj3XHSU/TPwGPSC','user','ak_d7d788cb20a92fdf','2023-05-15 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=1578;

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


