-- Host: db-master-6.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=9262;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$6qAl4M9MslCRtZVqPi1rYVhlWN5kmc5n5mpFkZN6CVfT27tNgbLJ1','user','ak_cf03946f8e6d486b','2023-04-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$7FjwijEzmEHTSJnwqkmDvVjdJUfUAwzvEtbQ2/pVa3gltQu1./UtL','admin','ak_c31599812a31aebc','2023-02-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$HsPqsHQiSVO2Fr0I/tzk7VN8E5k.V/9s1BBtunDfvOpavoZOjomC3','user','ak_821524e0f264f819','2023-10-25 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HkTzneUER8Fy51BJa8/OjWB7noYzDX0uqg3zbX.yV1iqXT.Oxtj/.','user','ak_2d4a64b616c6723a','2023-11-12 10:15:00',NULL);

