-- Host: db-master-0.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=19010;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$ORivzpUS/wMbNGGsakXmzA3EVlZXTesvw5LMf8WVnslUrNH4WVCli','admin','ak_410c76240f613357','2023-12-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$yFIZqeSCBLqeLN94NGKaoCTHYpWA23HoRXSV4wvH4DAJR5rU/Wh6X','admin','ak_e7d6f39b6490eadd','2023-08-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$CKqbwpRKqrLtyitea48KDX5xY6COQofrNVB6b9QMTqB5JAT3TMmNT','user','ak_bbe6f9c7a86b9188','2023-11-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Q5t1/VBRyjZz19T8lvUrWOOGpnKQ.MNIP9m4/inYm2nApnt.nCz6z','admin','ak_6b05a2476d39b391','2023-10-05 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$DGltHawDZFmqXaBn53KG9zrJHFwOT2hQFuewjw4AwqmxjJgIU9VDm','user','ak_4412bfe464b66723','2023-06-14 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$gLoYVmYQMDeQeHVO4L2X2jUV1zsBetNduQWkcpn3qSOoedIsvmHJC','admin','ak_5d02d53144ce96ec','2023-01-11 10:08:00',NULL);

