-- Host: db-master-9.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=7601;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$iaCBJ3m2zh0ssEk4vcRsKb9Kqzu5/SnI3V.QY06ti..dgkJkQhf0S','user','ak_3f91eed0e86aa05b','2023-06-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$nwhRZmKSRDi1zdJUtTt3WCbMcMJDTWePoPLk2oK7IdFFv1Q9DdoRF','admin','ak_e7585348a2e0231d','2023-11-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$b4e1rzsbpPY3CJNhJOduJCkv4Rs38wGBd2H9Y874eQJhfC97.1uxH','admin','ak_12fbb362327b170f','2023-09-17 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$3/1jqR/wdg27otk5yuj6Woo4H74zbypzhIOipHwCwEM.2ivCFBrfL','user','ak_6a83554ba5ffb8fc','2023-04-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$01bfjLiD8e3uw/LXBolvbINI7T0QYylN491Zw6p0bSscUensReJtX','user','ak_6c8347b94703d57a','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$tPrAM9IqZS3eX2v88dzoNxnRl.zvI6lApbUldPYKamHIruN.dK0JT','admin','ak_4b5807235c747372','2023-09-18 10:16:00',NULL);

