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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Ej3OsyFVf81FbLi0q9DLLjS8Jj/LtkoT7yiZkf8/1BNCNfnZTyZPG','admin','ak_dd7c66e2ec83c027','2023-12-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$5Wl9lc7K6QJVl5bCAVha8TO5nH.DruHRg1ZK1jz.eCg2gFHQlAdDJ','user','ak_01358ad071e47d99','2023-03-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$5YX1mR9ofRBPtyNlAV/MzF5iA0ILz58XbYTFk49CTvdpWhRh2Mpgk','user','ak_cab5f7cc6f71dbee','2023-09-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$uu0P1WPOO97yNdbianSSwngG8jfTAuaZ7IpxM9JHJvezIuwWgVC2t','user','ak_ef887569767856ae','2023-12-05 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$QN/H897mVv4GgHsKphHI5bbE0oIhqNQBAU1DgdJ3vltX/EmLqWGl1','admin','ak_40b58b8b6bab70c8','2023-06-06 10:14:00',NULL);

