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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$h2SQTjUReWfuEsG3GVMbhrOjvY5XIZzl8syOkwMK5awRVFG1Mlw3.','user','ak_a247b30113a38c7f','2023-04-16 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$hVAwzaXTNE/SaypymtLBLz1.CSpBfN004Pvsqa/4yjW2Gqmqsbn//','user','ak_d348be0388813287','2023-04-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$gVP2PnAvNBvkijXEU9Hmn0c4jFUgrXo/m6chUOOj1DSy5INpcCj5T','admin','ak_8ae2582289332681','2023-06-01 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$7Z5kcfOiR1lJOjHzhAKp6ncENe6Qb24xk5Mu2VE3I8B8y/Bh7LW/u','user','ak_f2a7423745d1f061','2023-11-17 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$TAiMP3f3eWZ8/Qi/WVBQrWFzpeNkQCehv4SrSbwRQABZflck0nJrD','admin','ak_d4408d0f5f9a23e8','2023-09-23 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$1qBR2g09pSulLWhv8IOHjSWy8Njq5P4wDHTMSc2bUVmNsY7Cc2hgR','user','ak_375d036d0141c047','2023-09-01 10:01:00',NULL);

