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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$WQ44DIv3asrUFHX0aw7E3f1JG9Ruut2fVvZy9XyH9FjRQgQZaFbZC','user','ak_f520668c657d7210','2023-03-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$nS9BbyP6IjamvYxsZfyJNOeTkbv3e0mpDa2jIWBjzYj1BmYSm0goz','user','ak_476427cce9ec7bde','2023-02-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$XwgWmEKZqoHVMReueXM6Y7O8ICAwmLRA0larqykIkMEEwFXvGAIso','user','ak_592033b6995b2d33','2023-05-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$hLIgYg4aAkR3iaP2COoqGvHl3nZmItN1Zqfhor6H3XJwlsOVMl1re','user','ak_536570b17885453f','2023-12-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$FP4Oe14oYmGGy1A/7oS6mQbyEtu0IwKrsvdY.4ngRuqXtKsk8R/NB','admin','ak_8ce1efca6423733a','2023-03-19 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$GqCCbYJn3VOej0E9hisTnwL4tHeRVt959bdY0/qhYORhadCNLPgjH','user','ak_db9bad492d64173b','2023-07-04 10:18: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=36854;

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


