-- Host: db-master-8.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=37415;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$A0mfHQDd9IE5xG56M7ssJjBh3HuZkG0NKMB2gc9b2z5bxqlY1advo','user','ak_f1f2def372952c3f','2023-04-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$wYEvJbHP7rh3WU3piu7NXwUPsEZJaO/KNfIByPo2ROt4jHQv8UPjJ','user','ak_abc0de331659b5bd','2023-08-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$w/iSdv0sZ1SprXSMxTXeX4Xdc3IOTKk07NsWetvaCnea5YM.N1nbX','user','ak_f3846c7a7bc593a2','2023-04-14 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$CqRxrlYAuWtV43BDYQwA36YJJ/8KJSYLByBRd54jBaQtrphphwm4W','admin','ak_e6b2ec6e379b84e3','2023-06-24 10:15:00',NULL);

