-- Host: db-master-1.internal    Database: production_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=40584;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$SW1KNJa3BgKExWlA5Hm1J4a8qhIkMKsgcTK4VJDCrvRSlv2hoQ5XI','user','ak_a24a922c580c7056','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$UD6OAw0GVcEQuVV3OEoLqUbTo2jgNodX30KaURHWxRIxfo96qEtmi','user','ak_ae6123ab90e09e85','2023-06-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$mcml6tzcGw3j5EtGw7cTD.oTYzB9hti7rc81Nb3Nsl9UXTTmCUhK2','user','ak_f3291e7f45846d69','2023-04-24 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$VrlaqcBYmGclvXMQV4JMqFBiyx3zv9v2Ol2VyBA2Ymdyl0TdOF1/n','user','ak_512a03e69a96117b','2023-03-07 10:13:00',NULL);

