-- Host: db-master-5.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=23332;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$RkeZQBFTm3GP6I2IohM9wLfg5bG7cMR2XDwRKXigamsvGS2T1JdCJ','user','ak_a8d5da2b402a07fb','2023-06-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$PfFpA7FsHmCiAfw05UsJkM0gfZjt12J4CWP0pZRYD5LXFysEvpKBM','user','ak_f4c12c522b12e9e1','2023-08-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$X5J8refkvuusFtXgSO/kG.Ukyd1FIIBVR6uc7aEOE1X/tDCUJaG8y','admin','ak_ac68f012f565ac0a','2023-02-04 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$mJ50x7QeaGa5ZhPMc2JV64W8UhYjyCe8bwwkLKLBPslhpunDAs947','user','ak_c9357e706ff524e9','2023-03-01 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$lo8Is3CRJ/JvzM4GJMUKQAG8lpnHt0PZPiT0iGDtL0bwEkEDIa10f','user','ak_26b294952d1840c8','2023-05-23 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$TX/Z7bAVNjOdfWsHiU2BxYq9QbU6.yhIjM/taFC4nrlB2SDOGLYq0','admin','ak_25963c0dbf2072a8','2023-12-21 10:06: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=1753;

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


