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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$WVB4kvY34gdc/KzYYZyguIGZjXF5Y1eGGj8tweHvsjq/yTsxnjPNW','user','ak_fcecc74a5b5252a3','2023-09-27 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$ePSKj50a13oO.agxho2svdm8qkj9KtO7ti2dNlS5Sts/M3KyY8/8l','user','ak_4ec8ee7772c39c6d','2023-10-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$ERYVw3XnxUGeLYcZvrUJBJrF7K2EzRySOI7asPUARbLPBTM99YA2S','admin','ak_d11184dd4f308ce0','2023-11-08 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$F.9gKhY5tOmiiOjUWlr84EZdQNVTZV6dXr5uIIo3Xf.PkmVKLfPBX','user','ak_7d8c461de5d9c791','2023-09-04 10:12: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=1892;

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


