-- Host: db-master-8.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=22310;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$xPRuRE9mH4hZW1jin4gUMLfDJwL48yYdmZKd1K7PiY5rPUk3dBEtb','admin','ak_842da060f4b1e017','2023-02-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$3JIixyHzPFk.bqb0KRJiy.rVKMVAklgWQA5eCUmXDoElNTkDSUib3','admin','ak_9dfa7679e954d414','2023-08-04 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$J.c/EcTTOff.FSupzDm/YlAo3m4VmvQmjUq0XegawptF4XioGuQsJ','user','ak_348365dc9196828c','2023-01-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$ugpqCT/xh9KUR75JKNvUQFYZO0xifn/H73RagtCngKGVK01VYCZ49','user','ak_c71a7772e37c1a77','2023-02-20 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$RS4yFTLN9QIiD4OMZRJ5csXCi9lwI0WEsFM5SaKkW4WnQ6NFut48C','user','ak_f0f6217d28e95f05','2023-10-09 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$TwcbktHb3SO7riCxoEd2exfhja/fkwHhWpH2PhhT5o2i0bahKNqwQ','admin','ak_84cac6352477504b','2023-06-26 10:05:00',NULL);

