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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$hM3O0RBURuoFqOCCUaMTsT2GWN2GHjFiAYoq9A8abBWuflQqmNWkg','user','ak_4c574594c06b0d96','2023-09-13 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$pxm94Qte69hW6/OJ8MlE9C5Y5PAjIpya8kPIKv.LStTzsSUXEKo37','user','ak_24b8dc0835b33dc1','2023-12-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$y2q/3XkROUs234/eFkXaOI5.KJhNf3uG5.dQoVPRXIXjCnJ6FuswI','user','ak_dfe92b682398b96c','2023-03-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$hMlxwcWChF7m8p2bJbxlCPxKflfAil.ytE5q/rZFxi5I0HWWAFkp4','user','ak_6b538a02452ea0db','2023-06-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$afTIsOcDHQ1EBl6Qxh2RBtE0JEAFXElJTPnRLtbAMwkKjPBNd7P8p','user','ak_6c88c3a9d8674afc','2023-10-02 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$ceeD4aavfp7vPrz40ncN8lb4SU3SsDW2yOUH4WHwlyDPjWzzBMgS1','user','ak_664026c76804699f','2023-12-02 10:14:00',NULL);

