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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$0UMoaFqPrw8IcUWKYS7I09OXMnthzhf1nvwDk.LOY0MtoMIc8ciSD','admin','ak_9cbe727e9c11bd2a','2023-10-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$32mG07O6ZHBkt5h5IkuGljqow0LoXmUdZZgJu0tYXFgeG6Hoo7kts','admin','ak_567a2b36c6ba225b','2023-01-27 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$AUZRCAem1MPkn3x1XULtD.nGSRpAeGCYcWGLnDeWSxxDh4R0lANbj','user','ak_95ef09b9be8dc5e4','2023-02-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$LfMkNfVyV/1m7JdPcMXZPpjW1OtwQK/9BCpAm1HD80salHn25QOi3','user','ak_aec69f9c1e41bd90','2023-10-14 10:13:00',NULL);

