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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ISZPda.d91YBZKNG6hE1TaHXWSGanJ5DIYnTN5d4h7g4qBBuraUXE','user','ak_57d9367585f05e2c','2023-07-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$LICB//kgRW9QrvlbkIgU68j6rUWV1XwU80vkDXs7yMUlRwLxLIw06','user','ak_67b19cb616399ae2','2023-10-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$wVAW.nkHzKVKwsmsrKhVksne7TSB1HOCPc/Ch/hfm5ta8W/8t2TQ.','user','ak_d393fa2e7ebacd22','2023-04-11 10:19: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=19118;

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


