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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$mogHZAzhIgN5I0BUiPyoAMVXg0jR0XV5faUgfdgAKT1sHJheYN7Bc','user','ak_e3d73fc3111eea89','2023-07-10 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$85TfkZFpCvqUQeZmw6lb4JEI8cynTXLBOZmX5m10sT6nDF0C9sqHF','user','ak_c6d7909ed78951dc','2023-10-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$S/g0ySD3CclaSBhlh4p9IZQNJb0y5e3XeEvtfHoZLmXdHkSMyEHo8','user','ak_a291131b7e825e96','2023-08-22 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$WnbC2gmDuA5MnoIn3L4eah5w3gO7yfl49538uA54VVoXj6iJQKtQO','user','ak_c550d899a2cab6c1','2023-06-10 10:21:00',NULL);

