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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$IKgTCmGXUoen1xSuEUg3RPxGQ6djSAqKUc05H2ukOZ3xvoZf1qbmJ','user','ak_ad6023a6f0c93170','2023-12-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$ukzHCKl2V7cTKw5LTCAWZsasHFSC3XZ9ctvMgCnI7pVtlweLXa.1Z','admin','ak_569ab9dc3bd25875','2023-10-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$qCRXl.aIYoqsE64D0U85YGmpqN/.edg9YJcb1MYkLDr3QN4tfkR.Z','user','ak_c1ec9800f24d3eaf','2023-12-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Yb.juKMOuUeGZBtmxUYKbNGwUzGV8uWrunyoJP6HhCOj9MyVApl5o','user','ak_a5e01975b9089885','2023-03-01 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$ePCS6vIPL1y/ObuquKyWcl/9i52HtWnI6sNaQBWtrT0a05MktJVpk','admin','ak_2c50d474f921f57c','2023-06-15 10:15:00',NULL);

