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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$c8j.g9UvxXUl/1sGwJjggL3oPXYphlFyHEADwFJFjyntdwJsu2b2O','user','ak_4a96ba896462bd48','2023-06-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$PCfWeKiACGltYUBqq.ftWlSFPePab1kVYE4F1dy4kl./m2rxaYfBo','admin','ak_5e183f92c0de366c','2023-03-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$9ziOavc4pNtFCkc/AzRSXhoWtswBWkQXjiwfJdzg/ec8CFB/bAibX','user','ak_c03fb53ebd7f9a02','2023-08-16 10:11: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=46029;

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


