-- Host: db-master-9.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$A.v5nXfh1EjQdHMwWIi3LIs1RvC74YNyFZrdEXDUTKmQvNHE6wIIG','admin','ak_ea3d9d66e38fce28','2023-08-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$AXk3piljLMBvyiBEnuHSi5vBbFhrJ42BHQedOWFI3/IfVpbSf1X7r','user','ak_b10d9a8ae05619ae','2023-06-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$QApbzltGLZwrwix6TfNnzzcekr5E/PBrzrdYuML1R05xOqd4osmZa','user','ak_d7853e4f1623d891','2023-12-26 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$yLvUeA7242c/5bO/bmEeSHHIvLnkNJExUDNYSPlmPCYcctgBDHOFt','user','ak_1a3646f66def0f89','2023-09-24 10:08: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=9874;

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


