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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$XNFVJc0PynQPpDE36PJ8aKCkdv6NVZvIY/FjO8i6qkdo37DQZRvh7','user','ak_f385ed94503ddcf5','2023-12-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$XKejofKccYUkWDv3S3qbQ49Y4oLOJM2h0KHJVDbHAx9B1GdVADOA9','admin','ak_5d38564a99044c37','2023-07-08 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$iynIMUpMm7w/IR0hg/3sh0lU6LVxULaBeC1vVXPUnECYPf117K2Lr','admin','ak_7380a85c9a75a719','2023-02-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$ZRV6Xe0VToOeW0XylZiuZkpZ8pXZCvoxc0aNkzOBEG3VDN4y/nTfi','admin','ak_5e95f673c109f49f','2023-04-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$8Qez.4EeTxWlk..TjmuRD7oWslU9rTGu2.uJ6fzpFhXMkCuJS.u2j','user','ak_8ce945dcb3f31e1c','2023-04-17 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$BQNf0YYmqvAbUPAljQk/JU5xd2f/.U1yeVzor5461Bx7PkdD0uxnw','admin','ak_60d75c95d73e77c4','2023-11-04 10:00: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=39261;

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


