-- Host: db-master-9.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$JCbtyfcGhRMQtYbqEzsilM5w5PnNKCRuBJYRFSJf5Dmd7mMFSCS9O','user','ak_768ea35ea43f08a9','2023-09-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$P9ZbJnPeusM2TUOmandtsS27OgrMcCys65AoSddD6oIcRY1/UKaSQ','user','ak_20289941f70b699e','2023-07-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$nF6Z4A/pg51E6L60XF1yIStjfONZV.9ZwOYVs4t7z7/pSlXFQmcuI','user','ak_f05564a63f003dae','2023-06-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$qRrvjyqHbbKf1VQC.cTs64TbeRrlu1zZfMR0bVWjAY0zWPkFlNw32','user','ak_aef34243cca93f74','2023-07-07 10:23:00',NULL);

