-- Host: db-master-0.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=46116;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Z01jYQ.oUlmUZT5RTMqPOXF2xn2ie0EkNalWBsnSUFtl8qIERKSbV','user','ak_4d89145828e0e9a5','2023-11-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$0wlV3NWLtggATRZktjbcito3lzTDxLIvECEWUgmJq1rUAFrVSbfdf','admin','ak_d7fb9465ea6e67d7','2023-08-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$zBhdVkwHaYz/7aUbDOwkK2w/GEqX.LYH63KhIsdiS2SzNjY9a8fEb','user','ak_8d7b115f1b01b205','2023-11-27 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$zaSGdIaR4BHxI3PCvqGVZtHqCNn1Gi0BKNhFtefelSLSeaTL9b9r5','user','ak_d0e5d656aad65bae','2023-07-18 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$f1SQ9gbWvvQSXxIvXfKhn3rBQhPEBjZ5ewvUPeOyuAybMpXKKGR1w','user','ak_a2722090ba2955d2','2023-11-02 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$L6UfCp2ywDVbYm854tMFrIaQDpmMMQlQGKtGBvLv6qcNf3sxQlepG','admin','ak_4a1cf687c71f8b8e','2023-05-06 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=25218;

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


