-- Host: db-master-8.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$34zz2ybx16tKW2n38wLSBweVHq0OmUuX97i9apohI46yGEQeQKMYX','user','ak_34560c663353ff75','2023-05-13 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$yuX8gcxgm.bumh2w5jDG3LSeHc2tGx7hTM7hMr/swWVRm5Lw4Q0ih','user','ak_8bc7932ffb0b8742','2023-04-25 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$SD8Cd2o9kyC3QOtd3lyrxCNsiP/HoFzAzGesXKBS22wrAhnZ2Qvsj','user','ak_3fdbca04d52b460d','2023-01-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$ZXRzrRj4ltdvYRUnpi4xpaYORp3IFr084yzS7ZSGYoklN7cFn39aX','user','ak_6cd612095c75e52b','2023-12-18 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$Jgz0cgB53McSaqlf9s6AtuE.7O4x8Hi.7PRptFwSDY2uXjxBoQH8L','admin','ak_a2cc09a5942a7afd','2023-05-17 10:19:00',NULL);

