-- Host: db-master-4.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=1527;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$piS7pztsP4aJZ67U4fs39Wn6wvcMKL39jttdF9Ae3JVZEPc12DYwt','admin','ak_6dff8e9660e8cc47','2023-08-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$uAGoYTCu3GLwzQ68KwZR/bdjEOnpwno1eG773ZnFlj47AizhN8dlq','user','ak_13b8ac4b956a9fc6','2023-05-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$hiyU067w6hXbpIqjW3jz9HhLFT82H3GJtrBvIat.6BVqVt3ucDhV2','user','ak_b211a8358e8da5ed','2023-12-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$ZIf1UXKLZ07BC.xxT.JsVK3P3mVYVUm.KjwUiXyqR5yo22fq47Wfk','user','ak_b9a60f1ade6484b0','2023-10-11 10:21: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=4036;

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


