-- Host: db-master-0.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=46842;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$rZfb5nT8V.1N4klPNP2zojgNDccXmJxWUFwzVDWo78hZEHx31Roh3','user','ak_f9516acb71aa88ba','2023-11-17 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$qrbcr01Yq4H0HTU2lOsa80ue8zYUTzYcDxPIYKPj.yigM2KGpeU62','user','ak_340d8acf1feec256','2023-08-03 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$KLoTr1K034bGxDWRXfC.tUS04P3mKMz1DhHuUuUV1UL7aDB89iNvH','user','ak_62c96c42dea7bb91','2023-02-07 10:00: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=23284;

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


