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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$I/GmT7riZ1MVpnfXpZ5qp.kHw6RJAP6vVxj4vpcB2biOaFx4/UgPd','user','ak_b681ff4b6d71176d','2023-09-13 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$V7KH0gWenPoNwgstpc4x4fBUuwhpRHtHFKDVQTfCrB1C9HdTBijKf','user','ak_23f6fceea70332f6','2023-04-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$rOAhziIv/G4GGmoAkvAqT6iFNALRPUJ.Ar.JqadZjnAxK8qClJGGJ','admin','ak_548c90fbc9530c95','2023-12-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$WZCQrr2/I9dI.vl05MYrDB/fbk8j4WE5mIejiZixmFKbsbf5XG48N','user','ak_11bf85a9e446bc29','2023-11-10 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$IgheOnh3ED14xCTHFx4nYsPbH6AyZY3z/enT1Np.pMIOfRXu4m0LW','admin','ak_47b2dde1d7555bb5','2023-11-16 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$vG81IKXz4cgCy46epilR1EPy8D4NWWpJqiv3oRZmsKCRKZfxHKYQO','user','ak_1edafe39f35d12c2','2023-03-22 10:10: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=17783;

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


