-- Host: db-master-2.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=39094;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$T77cc2jKCARKtfYVQuLCxR8Ks2AOHzQ5DHU9AJW.OFLlKxCF7M4Je','admin','ak_a7c8d0e5197b30d5','2023-04-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$lFPKWMP.lPRw.8dqOS/ca1G6nb24zNCoIgLBuOlAffhno5iF2/HOn','admin','ak_83c720c8d2292784','2023-03-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$02WmrUPKFujiH9wpCqXmCM1bTO8SGtwbbARi8FTnwjE5yvEKi/3Qs','admin','ak_6a22f5cdce155c3f','2023-10-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$gZbPznXInEE0rnYfTsssCApkGR0Fa9StjDFyOdY6vGKku43Gj8YyL','user','ak_46c1b472aff6802c','2023-08-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$QTqiukjih9jozvv.6kCLxO7VGrYe.nEieAybpu1.BGW8NzHTRRD2O','admin','ak_60aa59a8bfcf7fee','2023-08-01 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$IgOn27ChngYXgjFL2PtjxduNG7BqIQXiWBamdLjZJTxYxZm22U/.D','user','ak_443073e526fc4ad8','2023-11-19 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$.1rp2veRkiiZ4M2QXk3UnxO3hUvAOn/sueR/87IGlTFjVcN7uLWJB','user','ak_b4f4c3f58a38b5c4','2023-05-13 10:21:00',NULL);

