-- Host: db-master-1.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$IQSOTlkLePU0ZvX.a3kIM2ANikNDm6Q5Uzqx3Wc9rptE2epho/NSf','user','ak_6e5139a0ffd90c40','2023-02-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$nDw0uis5Ew3OYRDR.994GYzOxZfIuJXKoBY1rymE9Cg5NdFeZ6Kp8','user','ak_94dcfc7ed62cefc4','2023-06-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$RBT.DqLinLXWnoc.Fe239TLehHTJk75gwAwM2jiuzjiilkpaM5F3e','admin','ak_704b7e36a8afc2d8','2023-04-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$/OlWbBJo0ZBHccH9PySW8TNuCszEDHPejvu/.Aj1oil7.dvC8boom','user','ak_12c11003141f6ac8','2023-01-21 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$9LFW6hKNMINMfamJl8UmIc9.TgLkzGltcw53suLdaRG.xqXWs/DcB','user','ak_59b07ec21340c7ab','2023-03-14 10:15:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=1992;

--
-- Dumping data for table `orders`
--


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

--
-- Dumping data for table `products`
--


