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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=30311;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$rqoo.UDtL1Ly1dvzbJjxA6ZdwccYp3AwS/wBEq0i.bohAIhAIYp7B','user','ak_48b8ae97e8907293','2023-07-09 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$HSSmX5YLYE2WXQdPL2g4fDdkqWnjLEl5PVRvk3GRDCw5u2YoYcaEp','user','ak_775cd51632622223','2023-09-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$ARGQEYoT8GWSuaZXrXPaciGTcXJL9/btTnAk2h2s3JwbIldCoEuId','user','ak_7e099b73f5fae1c4','2023-02-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$nr6W3qISCgNMQTghEEKzmafrzORW7yZMgqMh/fFWsy811PNlFcWVv','admin','ak_1e80e4b8a7107409','2023-07-11 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Ur9diO6O7WmoCcEf1Kt6CQdekJc/IAnl2csN6LnVhwbJvFMN.mMhJ','admin','ak_02abedb5cb8b488b','2023-05-16 10:09:00',NULL);

