-- Host: db-master-9.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=49616;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$OmD5x/9DjNbuLkApxku3AZH8kbFdRp1RuTOHDOZR2OKV1JbXZIjNT','user','ak_6e15538bba8f12fc','2023-09-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$2GoYI60Wx7041v8aBEBflB6UVbNFqrycFEFH3DqvXFwa84lHHR4Nf','user','ak_c69267bcb21e9dc6','2023-10-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$CXj.1TRsIzYECn7B8Eb.Yh2IAbv0RRvFhNy0rNUnA98zVAYj3G4kg','user','ak_85bc648b3d244173','2023-07-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$cR5d4/OAcjiJHQeNrLvBbz8PpnG4Llp2vs3RTuz2JfFMZ6C4Ljzzx','user','ak_d7e83a3ef530d66e','2023-06-07 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$vHY2lKTXc71LF7vVgA76rBpMuVnDeSYxuoN9uQLjqk04cLCj5Kln8','user','ak_f05f51cf2375d6f5','2023-03-06 10:23:00',NULL);

