-- Host: db-master-0.internal    Database: production_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=7438;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$XbNGBNPZO.1v87pWQy3LYjgWMMX59/as5Nz0vAbEcdnbxXrP2DolU','admin','ak_5de89fb6ae5f26ec','2023-04-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$nANe4Yz5HSEIk1xip7QwuPAHGKn5LIQgbJrC4KOEoA2wdFXmTOEw8','user','ak_1e4aa9bbe8ca893b','2023-04-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$VPbWRkfDsrvD06wBGPkTt0lXhrsa8WdarZQyYizQXo3McmaCUTFd/','user','ak_75fea62098e2486b','2023-09-11 10:23: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=12321;

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


