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


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$tMLT8VgXHkCVNPDJ/pK3uypKg.3pLnXs7pg9fn8UgD2aox1Rj1fg3','admin','ak_cac4778bd7b6709a','2023-06-17 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$RQh./BMVrCtC0e5DJrMXYUlhR0fLWSgy1Rkws59R.tf7jhORNLqP8','user','ak_6f5d52322a02c64f','2023-01-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$IOtL4ZSJQ6u5EL238ayvGcaShNsm3jUKtwSnBrVS4U9NdX7CVVs5c','user','ak_7beeda194634a593','2023-11-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$yKOPcsz5.csfDnvyxop7S38v5dggA8rcpAaHWMbv1ICRams9aaUUz','user','ak_5e4359440a980ac7','2023-01-22 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$f8D/lJdGK5Q0bsIyHP6QxHndwHod4rW7oK2MUAoenATSDWlisGbL2','user','ak_48146b66aac024ee','2023-07-20 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$zEprBLVLsvXMBO5A0YEH20x8zxbgq.B.L7nKm8eiaAAoVASrBGwZH','user','ak_4b39072a3666fc9b','2023-02-13 10:00:00',NULL);

