-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$B5a.MSIBNLvkouKo18e.GXxFBDSa.4jlZ/.rbcgDHj9KXy3jS9f8p','admin','ak_f46e6f05174628c8','2023-01-27 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$XvHC/47XdEc4OAQ7B8Dfy2ulZGOnnMvP1hhZQ9fEASQGQAmOYEUKY','user','ak_7e5813b4874e02a5','2023-08-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$bNqxw3Xnk7pT.p9D6FUGroxPao3ztNV2CqLWtNfU9MerXK1yihEcw','user','ak_9073676140873f44','2023-08-17 10:09:00',NULL);

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

--
-- Dumping data for table `sessions`
--


