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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$7OZBamtQdmh3gyVgSMl26bCvl2/ok84LAczoE1Ya3PuQOQzYupvcW','user','ak_422af9f841af723b','2023-07-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Ta//kUd15/jx/CpH4sRNGSp55xB6I2x8aFybgMiuss1MuDwyzZnLn','user','ak_12edc183f31631a8','2023-05-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Ae0scGwGDgmaIMjUslfe/6OW0jkgZK6po/jL4juvqpF8dsZoUbFVR','user','ak_a10cabd8ac77ea6c','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$rOfDeRhVRbeKe2sIx1mRtS/b6iLpZYNkLI5kN1s9BmaIj/1g5ltPL','user','ak_cb2cd7c31554ce81','2023-01-06 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$.XYnUdtNO4vCx6Ty/1WPXYni2yDfYW8RwW2m2mlJWb20acGMBi/ks','user','ak_1ab1d382dc9465f6','2023-06-21 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$/CN1zdJ1iJn/85j0997r8FsnNj92ZEBu.eHQMjw1rWTIASEvuzeVQ','user','ak_c7cc2aa0f712c8b8','2023-03-01 10:13:00',NULL);

