-- Host: db-master-2.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$rZ8/hybGCpF9MuLEMwG8nVQHOg6BOaub4e.ihiU3PCqSrZjUeQkEu','user','ak_8d9244adf4e894ba','2023-11-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$OLEzXKssrVWWuq6m5A4rl3.J/DJYF3ugsybC7je5N0SP9WNm7eJ6Z','user','ak_bdce8d7e65881cf2','2023-01-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$uFnp7SaCtJajlvVuKQR7yb.BR1jUKAxwHIgKC8UGiS4Z/e6JA7VPy','user','ak_6121c988d3c08ec1','2023-04-06 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$va/bcb.EbOs40vGI3POAIwEjBjyOxxbw7ngNizpl2TZMvVpQ3DiIc','admin','ak_2098a75b18015f26','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$jQMvZNMQudmp8YhJUVw7BnG0eppqchm6./P33M.sCmjqqAB7fUsNC','user','ak_ae26414f35245130','2023-10-01 10:16:00',NULL);

