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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$5Mi5etShjj1nVuMLBKtedrl1tMuUP1S6pg7Z21JUDDCjEh9wJ8YUf','user','ak_09d8867792619596','2023-01-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$xpINi6y7GCSvQ963or6gDGFwix8rNxuLpu2Bh1NIHVnzGeJz7G8.X','user','ak_90ee51ae44fc80ea','2023-08-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$3F9ov/vGP4Vc.k.5aI65qnpjEMgQtyH0Fg79TC0UjHS3FBWl5TceT','user','ak_aba660af06fe3ca0','2023-01-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$fGwzkWlH07g6AZM8BzCVRnvn7LlAFnRjyiRoc/WqQ/irvVG72WT07','user','ak_f7c74a668ae7b081','2023-01-16 10:16:00',NULL);

