-- Host: db-master-1.internal    Database: webapp_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=10720;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$iIzdRtCxXkguj.OQtoHYtGfMqb769HK/Hx.EjeoQ5FTPZ4VODdip6','user','ak_88bfa045b21a8751','2023-05-06 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$2eEHqWHMF9FlCYWHeoUizGwLfSdjGB7kWk4a5dsn0bBnHqKkIY9L2','user','ak_dd7dfa7e86b74989','2023-08-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$cxyPhLkeuLnAfYGG3UyuRCRZCpKXK19dWy1BSW3qXsUqTdRN93z4D','user','ak_5920823362a99500','2023-01-24 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$spZTWWL0GNz.SPUXmGBB9RguK8reuI6.qz2FRBolD8D6mvtpcSueF','user','ak_27db252d5527a4ab','2023-05-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$1mNFNyp3nMRcUlXASVO.vHSEpsoBaNMyJeupleXPaggRpaEOTpue5','admin','ak_4b1a705814e67419','2023-05-05 10:02:00',NULL);

