-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$br8DS3L48B7CJt1B4inLlv2wgqnZkP7MlkgxTkSj7LUsYIgylHGTd','user','ak_83a4156c3caee7c8','2023-05-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$CZYnVydp9Qz7r8RYLkQ7G9k4gufbiJFY9Rc4rIaYrNWN.WA4UAK86','user','ak_9b49f0f7ded9891a','2023-05-17 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$5LMiBTMxWc9TnvklYnAbPFgbHmOeS6KjnJbupAwviw0x1e1DIheHG','user','ak_fa8d6e667bc440da','2023-01-24 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$HrbVN1Ybgdr3Er83xxCdpRXe3gEc0XR34T2xfll7K.tIUSuL4/5ne','user','ak_f75d28f30c440ce0','2023-07-28 10:04:00',NULL);

