-- Host: db-master-5.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=23268;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$2WNld7ci3d033WTHbFKSv8vI1dbpGhYSawakrQofPtCxYlM7NkNvV','user','ak_db654d4856d703a0','2023-09-04 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$3zJtFm6VcXGL3j0f21OapPeGMH6nMi6BhpthkLybVbeWbNgB/wdfx','user','ak_c42277886d15a4ba','2023-02-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$cjDX/2U02awOfo/sfIkEBgacV5c3FD/eIZ2U45/sFIQeWutlgSmRP','user','ak_c7d2f5fb53673edb','2023-05-26 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$.23LiNapfPNx1je/ZAbQY/wMKL32MTIje1/VauskRUwLMmde73OuJ','admin','ak_9e1cb0aea3f147bc','2023-11-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$zCq6QO4MVEnQ46VSr8X.FIg00FP9DDiE5BivLI5rq4KWBFrIzjXD9','admin','ak_74f5802d088dce92','2023-05-02 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$Cc24WIoDRN52BWPiiKZD3hh77PlP6zRMOk7mDQ3Zy07y2kYM54Y6C','admin','ak_11814c81b626b0db','2023-03-15 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$iETpgyuf78lnl5EDTUy9CzxvG7F/qT65GYN5N3uG5Wg0.BqqWWY3C','user','ak_79ed29325d28b791','2023-09-15 10:04: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=40774;

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


