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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$lQWKhdkMM/avpn14W2EpU7W/2j5L42KXT17Qspm76tpEPEjs0vqjk','admin','ak_187e334bc63005be','2023-05-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$cH2EdwgRAeTf6jidDynV54/75usg0JpYhLEIrSIgRJUzvupSI47nB','admin','ak_8bd7d33e2e09a194','2023-02-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$y2.AVmvlxEv9Do7kO/c4N3FDwDySapFrh3Fi/qRw/LA.48U9PD1jS','user','ak_8b7448d90d389cf7','2023-04-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$zdNQe/CIF.8XjynafIzfw0BSi6mI58GvUi.TuauQTG.tHRVUB5Al5','admin','ak_f950c151a724e264','2023-07-20 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$KJWwifsv0Kwx4SDVPfsqfxi0cCxIH8SkHQwd34O/S8J6G/W14JW1Y','user','ak_176cd6ee8433b65a','2023-10-06 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$BsMhnLWQLZ9iUBa/2yZbEmXvl5wJLQvSmz1ZAWwnjZitWCkYwmIqq','user','ak_0db4c368428ae7fa','2023-10-12 10:06:00',NULL);

