-- Host: db-master-4.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=23620;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$dKBMKPQQaYtny/ab7wg/pyrk6SZ1iGsv2Re4qAQHcF5vsNtQkTIIM','admin','ak_295cce65b937274c','2023-08-25 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$s3mPYiUlmKWVniD2mXgc8V6nnD4UBrr9jDsRaf4NnbQb3ZrCjzB3u','admin','ak_5ee373ed4d9748b9','2023-06-03 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$qmqmq8FX99pn6bxsYzJAhhfg9cLYsGBehUu6YCzfJA3xTpiu1VBpL','user','ak_ed05f2a02667ddc8','2023-02-16 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$BCgXSBmyiHUXaJfDhbtvp/ZXHgan5XZfE9fbJdXKkBKsoEyGekwLP','admin','ak_4668c77facfb5bdf','2023-01-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$BmL7WorWHpuzAPgvh3k2MpE266Go2pIUw5WwOZlqM6MDaYZZ5tYH2','user','ak_8269bde488763855','2023-02-02 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$VeCgcWzEeVlVmhdKsZmPHAQltzMTJDjx01GOoQXbGJJho.OqoFkPU','user','ak_c7a0930d78c84340','2023-05-06 10:01:00',NULL);

