-- Host: db-master-1.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=20071;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ECqyzoPeyTfxqjIMCbJle73EoBSk1pG0xVe0.9.prbwWOFQPAUa05','admin','ak_15c05256141c2c3b','2023-02-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$idS/Geo5Hb99wNHo0xPF4RYvnvT6Uv9rm.gz5hxD6AZ1IXnIln4S.','admin','ak_9efa8dd07e767df4','2023-11-08 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$xR.KiSbHCPozuLa1327G1ZfOk2IsLmlLxtvAw/dik7kGvgFEGPSmZ','user','ak_e4f1f8c7c458b188','2023-04-23 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$pC2VkbymfHZxPv6Gzy.0IP5sF4Wxq2oQ97X3/frGY9Q/XPr0Kmb5s','admin','ak_43615fcbc9690906','2023-02-24 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$GuI1aJSCYo/vEknWL8b/OCBLqiTb7nDQUku3uA300r/elznQX1Cdy','user','ak_8982a921392edf74','2023-02-03 10:01:00',NULL);

