-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$fYd6fHwjaFhUXCOfReXwTRWA.r6JWb8m5shzn0N7vt6ouskO1LHAd','admin','ak_6f70229b17f1577f','2023-08-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$uYH49srKUE/TLH3PADuwBvkGUv5Xj0AE0B5hFouteZ5X2./qJBwxg','user','ak_fcd828f4c8c302c2','2023-10-28 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$T5csuT.Y6AVFQdC3rqJIh2JBoQL1nTvxLQxnaTZTugNIUlzAxCagu','user','ak_9ec11123b9a33182','2023-06-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$31fB33PORoMCfYZyD9umzAbpuO2ELEoFD7k1qGcpomcU4Ws7FoVnc','admin','ak_556f6964fd622890','2023-11-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$8KcVRvcnlcGPtOHEiHAW12o9W0LHcpnZhO2WeGHBHr18he/BoldB5','user','ak_f20dbc2cebfa0aa1','2023-04-01 10:21:00',NULL);

