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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Guz476VqwNSgEVPL91qsq47.hcoiPsOanSPVB8e24LqTK7GTAmutA','user','ak_60707eb3bb9c2f7e','2023-04-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$MhyE6IXP0ruXH/D21wK8CxzEjxTBbIgSODFEgEdVJSo8qH4GyFoho','user','ak_e7bf13c1fa6233ee','2023-10-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Oh8rAnERbzolrumo0HX0ibnH1r5whBINIFCyI7b4BQQqciV7AD4K1','admin','ak_514f686b9831307d','2023-01-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$rXZ4fGvjBRuWfAKdDgwEDyiRIC/57UMMn3mOlH2d/KuVfv8OBMmG/','admin','ak_84dd565911af0080','2023-02-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$w9QTAqYdxHDRN8SB74911lYBH9/EcXLzXB4ZG.dSt9Rh/5h0dD5ZA','user','ak_a7eac3505297febd','2023-08-05 10:01:00',NULL);

