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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$mpqDrOu6ZQWVoQ4.7uIOLIANc2j59bcC6KMU5zTfrn6Jkr1FsfabA','admin','ak_7dc558c214c55f52','2023-06-17 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Y7Aa8dIl6Nv5kls.Fi587C27DET/Pzo3QLz9co2A4kDL35kVGBQtr','admin','ak_6f7a82df4fd9f69c','2023-03-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$jDAj/1yJpg0V5YLjPDDu70usIIczR4xWuOs/FA21ssBPK0K6Jhgqq','admin','ak_f64c4be98cab4624','2023-09-16 10:20: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=41688;

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


