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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$QfTDrgNFaNRSyVBggRykkmWm76mGRBdbPG6nB85NhyqjbS1NqEuUY','admin','ak_afb33e8c66e03d45','2023-09-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$g3H3IF71fVbycU2wPNBZD/OzxY7WSfnHZF4iAYsNtahEdZdMX3GiI','user','ak_4e74cf53a31fe37e','2023-08-11 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$aoAl86oQu/96lpbz/6SOHcayPvh7LteHQXfLQasMXzszXH4kajesa','user','ak_f4f34c28f3a3870e','2023-12-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ORke8Q5xKwfr1IQ/88tVHWciOR3IM4QMZ.fBAzeEKejlkeOftGRWw','user','ak_cca596381016e5b2','2023-01-27 10:13: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=43782;

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


