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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$3nGVeTYsi5ZiiMD5aT1gDbsrTp0qsVkBpe1amjz0xzHUrrFwEDRLT','user','ak_8531b65725e22a3a','2023-06-08 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$nN7dGZszlSIMDRU.ZQVa3UJx/1l9eysGo5016beMqK8fx43DZ32yJ','user','ak_a106ae867181f6c9','2023-07-10 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$STggxg7MKasYuFY1JwarVoEb.gv9BnAD4bTTMdZuEVS1U1L7KpJzR','user','ak_b9ea92b9713dc3d6','2023-09-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$qGBtPZBlDAx3TvmBuJht9JYcGe9hjhV2ab3E8IvqsDlQNk.8Lxfli','user','ak_c80476a7bd0360f7','2023-06-07 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$hzcI2ijLFUfvS/ZLZh1xE8f2YfgrnTwbPxQwMH8LnLYfr7eFqXXdx','user','ak_1eb32212df5ff6e7','2023-11-26 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=23312;

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


