-- Host: db-master-5.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$QZmmENqrdFBVxi.FuDrmHcUGBjN02hFohAbY4zOLXKc9.J0auHs6v','admin','ak_14151667dfb05103','2023-01-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$phL6vHQzXfdt0RXNijbc9cRBajOgNh7MYduZSet8cucMN3H7KfZBd','user','ak_f4a4419049fdef59','2023-11-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$gT14yYCDInoPiSX0Manr/WrL7hw.ul4vunYTtIGEJxy4LWBNq5qq2','user','ak_a4e2509a8b0bc0ed','2023-02-08 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$SlkON3gRIBkr4QBQG4pE197.Ah1SvPAi/kkdzQ3npX9hk1EwJ.Gtz','admin','ak_3aa8cbfa7ee4047e','2023-11-09 10:01:00',NULL);

