-- Host: db-master-5.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=41297;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$pb5Ote/1bRHRkklJYHUQRK2ubfqknaej62zoOE3eahjWbynop1.iD','user','ak_43b39aca4736b925','2023-07-24 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Hy8YghhV7SZDbvOZszHuBR/tVFhGHV1bl04/G1DvwVCbG180FeckM','user','ak_f3fa37b997f8a1ba','2023-07-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$4lmFGIP4fxOm81D97Y/QZm.JPiNSPcD1cWqzIMnHMtwNXiTKK4LUU','user','ak_80f01780121ffdd0','2023-09-24 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$7H8akCoveNgCkgECHy6etJb76hX7orBoEGlyVbCYaeeNzlJG5SlDM','user','ak_617cfc4d25ebe55d','2023-08-08 10:23:00',NULL);

