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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$QfFBWYk4Eaux30EiePIiGvcJftvTlkd1Qp2XYzzyo6kDgu7NeBpZi','user','ak_39430b5e83117a6b','2023-03-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$iGJrOyOc5qsQB9ktHzQh.i5j6ZnesAtWPFDPPGlACW85bw77.6Lhs','user','ak_1c8f33921799aa94','2023-06-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$uvcmTvTeazUAR2btScXNPqayfV1jnrB2NUbKN2nzAOHLIZKGxaecz','user','ak_85b6a0244aeac9c8','2023-05-09 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$zOAfOaZwXOUucPVzEx9ROlO57wL9/2qjDwsyd0cvRo7xZww2Y1oJ9','user','ak_adbd0541ed3794a7','2023-06-22 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$/BIqr/JW.9uSQ713b.VSfUoqi5tP7tb5SdCNK6J6BFctWo1watqDZ','admin','ak_355f4d38e17fc557','2023-01-12 10:05:00',NULL);

