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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$ZZPqsOQkfZzFIPDR4b/LK22cgPhehX7NR2eSLOOkIFCElTMfgD5QQ','user','ak_e05eab547b6ae29a','2023-04-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Mq18n/T/0I1ROgszy1YQEgjq9MLieGf5a/fc8LWthsW6JKR9SpxOj','user','ak_7cbe07a2a1dfb1b9','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Y8OodNUe1YDYSETEvvElDXI27PpGfkIYRgL0HiEOzRk5/rBuP/B4B','user','ak_d36f53c17e90ce8b','2023-11-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$86NOyLtaWd5E3dJcXdRlSbd2yNF07HZePGvY6.W5RhG9eg.JiHiSr','admin','ak_b378d5e03ee7b4f6','2023-01-16 10:15:00',NULL);

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

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


