-- Host: db-master-4.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=2572;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=22472;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$LBrAn18q.bL2kU3DYgtcSfH554ala/IhGwoeRKs5btSeOz9gOCseQ','admin','ak_c7e32af7aba0c63d','2023-08-22 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Oe71ydjfHqK4z12gmEISD5oYC6fo6yN2hQXq2jgkUQ89TliPjfDuM','user','ak_a1a065493e224170','2023-11-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$YHyhBObavQFLsx2a.cuySY.f4ScJd4PLvtaTbiqcEfY3mPjVwwDpL','user','ak_4ee83a72685571a7','2023-10-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Z.FUGVzbYbrZMMC2Wdb4KvHOdxoIHyqnUrY3x8zdxb9pcTBvbu76V','user','ak_715b4f4bfff2dcec','2023-07-01 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$WthA70lCUwhRzvnSIwPNKhHXJ2qLi9u28JxM13AIooqooqaxzLHOu','user','ak_34d91f080cba114f','2023-04-07 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$ZLbKxPd4f2Q.wcOmaFpMT/2NyybKuywq4/ODF7VuR0Xtm4XGoqPyE','user','ak_3db6420fd689b452','2023-07-14 10:12:00',NULL);

