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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$4Wl75BKX.KuTd9fpO/km3kQY0EJ3TZrznzDnKwgWHbLUiFVvmm3O4','admin','ak_8efcd5fb2846614f','2023-04-16 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$zIHjMFpH1BwEBPRGvFsbMgiTouZTv8yIlnTMVD6MfHaLVQ58mMzYP','user','ak_a1248805e1a1f1c3','2023-07-25 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$SUzSWGvFCjB0lxYqwZ4I.lMYq5moRgkts7tc7HDqwgRm8isHpyvNv','user','ak_9b92a6ad48260773','2023-09-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$duL9Utq7R9qyeZ.8X6ZRwPWX3sNVZBcuAET/2MLacuuQYP47hGBHO','user','ak_9118ae5d12e0e6b7','2023-05-08 10:14: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=38087;

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


