-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$pZ4w9lpbrz/qHOJ6/xnmcV5EGD7pQJjViVtMuOy1.z9ZFEdxo5iUd','user','ak_6ef7040d9a883846','2023-03-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$RZ1iNDniDC/ubyJ8iHmYsLraI2N5GoWl1aZL5eoKIrRIUCHGmraiJ','user','ak_aa8c5eca4a52b57d','2023-02-20 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Xr3nvUQJ6gTsde5FY9M52PP9D13tv6.Wpt5cNZnhdqUg97tILNkr4','admin','ak_cc0538e2096f84b1','2023-02-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$.TWGd2WIRVOcUdfVIv3K/.U8YodRglyrC5XkowE15UunlyD8TG6mJ','user','ak_f74f0c658917e21a','2023-02-02 10:20:00',NULL);

