-- Host: db-master-2.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=8182;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$1aAc7SKCI7H3PmvAsfpjoTui3sTlaEbLxrmwOGHKtcZrmerKe0bHL','user','ak_4731821675cc7402','2023-02-23 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$Qpexli4rDZfaW1rXlHRWHijHlToO3r6FAF2N39ng694wQJ32RWS2L','user','ak_27e1f1a2cab2c6a0','2023-08-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$.DKr51i69GIDv2d8nDmT39bX2WL02W6SyssjalAzZSCpifE8Okotr','user','ak_b8ccb7484a0e795d','2023-11-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$WB8zrBdOdZsOk/z/gF.pIueI0cz2Y281d6ti.ApgtUlIusZNd28jo','user','ak_fbf8756e6d473b87','2023-05-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$ZC2dCw9sj.zL0.Z4UIvs2QwQs7vfsSSotHEP5MGOW8eYGxt3/lHOU','admin','ak_614fba5734359558','2023-04-28 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$j6Nc/ijDp7aO/w2kBnsbWOdhD.x8Sh3Cfj1G/UnC5AbjkwYK8EQV7','user','ak_20e3888ac2898d99','2023-11-11 10:01: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=4596;

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


