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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$p8NIXI9NuNZAedxws2Rf859EcqzwyDGv2tcXkXA9Ls1sRFs3sLB7h','user','ak_3b20fea7b48b21d6','2023-06-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$qZfE4OGxKrIQeZGnkvMn9XnvaUigAQ1ypb8egY7AErDrNk9fhvTfe','user','ak_74566c725be86bf7','2023-02-12 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$/gYgTC282CBpfd2.rxD2v3t0XG3JrpJD337yVL9gG.vEvLktbXD1b','admin','ak_25a4ec6e26efb411','2023-11-12 10:23: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=11740;

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


