-- Host: db-master-8.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=10627;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$g9VIR/JeQmVe3fJmNVBn6JvcWa369qHIHJPF8g5MIEgop01TOknaq','user','ak_20d304c278d8ae78','2023-09-27 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$TdHdLMzimQtgRvktn6TG8ZnONGjEziWwsiDhSrF8S6jsRJDAUuTiW','user','ak_5911d796756a4342','2023-11-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$x9LjJaQGwBWMOq.N2MhK5iY3/y0nT.kzlI6HIJiVAPNdIqRbQNG/u','admin','ak_e2afaee24917a6c8','2023-08-23 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$/aVoi1SVh4bMF4DRS6Rred2WpfnGu0t9rPDMezFa2VhLurMjiDdvh','user','ak_877c19c71b9f6bb8','2023-12-27 10:11:00',NULL);

