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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$b2MegvKgAME/waHQkRQPJqvTDsxtKCIgn0PePYDiN7/4Bcgtan88E','user','ak_c02224fc291b423a','2023-01-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$XobNMwrTTf9BwUnZywk.OyTjL9weASyGx8b4X2Vyn9jdgQyYevpzg','admin','ak_cbfd618e62f3bb8a','2023-06-01 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$TNxhkMNP2lEhoH6n54/VSkR9vpg5t/W1IyAXWyyyZ7D07eSAawzVF','user','ak_47a396f3a893942e','2023-01-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$hQs7pqOLrM7Lskw/8gSu3dLZ508gUTclFD9RETd0QY1IdJD6FzstE','user','ak_b29f5f33aebac128','2023-09-15 10:14:00',NULL);

