-- Host: db-master-1.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=15944;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$FHo02r7H2HtnNt80RP1rvPbAsH1HIkgD.7wSFmmbzw0BKFpkqNeQZ','admin','ak_8fe4986517b9023c','2023-09-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$y1P5UdiX7fYvwxbsccLcsVS0CfP7bJcC7Wd2VnGeqL8H.qY0/g2s5','user','ak_d1c5d9fc64beaf2b','2023-11-07 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$1gdS9HqHyB7mqeNp0JAJjRAr3fAHadkU23AeITQHPNhBdSnqq5KGc','user','ak_24fff232504b2d3f','2023-08-04 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$iDCfONinOARzmABSPmBhJs3X1V6kySixwdI4XPvpaQulS3L7oM3TP','admin','ak_99fbc3ffcdb7cd54','2023-03-27 10:19: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=23443;

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


