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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$CpfaIaR.looocKBeq5NEZk3miizgN5EvyDAvmQSx19OkDY1D/f/bG','admin','ak_c879eacd472fd85e','2023-07-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Mc7c84a/uHEGoQlPPPVq.Kmb7Ak2f4j70J8k9V2EmDhmlU.2/eJJm','user','ak_4c41934e5c4da4af','2023-07-19 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$6jzUoajBRSSR4Cl0NCxlqvYYuYVFHdLRWJ8QOkuO8jnVcG0tEHvqA','admin','ak_278441a07627d1c4','2023-05-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$ixN6pTy6VwHTYbhFta5KEm2ggyDDP.bVn6361w3HZNV3lNIwQbpMM','user','ak_d251b0b51a9ecd1c','2023-03-03 10:12: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=34298;

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


