-- Host: db-master-4.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$zVNBy0MrYHzBPMiNbwWnVV3eeuo75PUk5jRRrvME/O5SJRbcDBpTa','user','ak_fa12b0b28c79f2a7','2023-10-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$WD/TAwfh4DoJANtaN59WexoHIgzEglzP/zY536erp1bJy2a2fL1gr','admin','ak_1c4f54ec7ec07f42','2023-02-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$GaeceQUnMbOF9x7N4VEruCu0QsenqmGzhBXGnxa.3CFjmtzQRFl2i','user','ak_bd93d2d6709cd52a','2023-09-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$t/l2tH.13Ih9DfPm27dS2XEqSIi/M8hVXLAUAbuvw7RdJiyTxR4/W','admin','ak_00c273edb583d4bf','2023-07-01 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$GMyg5WI.7weV6anUYVJ/4Rsrzwl2XAtpMNkHBEHRHpNZ80myXqVbU','user','ak_e744962198e57092','2023-11-11 10:17:00',NULL);

