-- Host: db-master-1.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=34093;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$B3RglPJYsAFqhZopiOgLEDQ/dsRTB4nYlelkjza9neTvbMHbED.FY','user','ak_d096a6b2c328d08d','2023-06-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$gkExHc1NDKxw4r1vvWs90FRENPB3su1A08ooqVjKrrlU4sfg/pMpk','admin','ak_36e1a7c254cef137','2023-08-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$.f3IadqFGlbsTi5ygtGwliawlPOsoiPQyTtntEITNuU8QAuIt.cL6','user','ak_91002920c4b27cb6','2023-09-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$A0hxwIfqBoTecvkZm8vV6lZo/pArAXJ9QJNW6UABl4OW0z4gzTdgK','admin','ak_189c5d998948b126','2023-05-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$54WLdcdkvPIZdr9vjj2XaBUr9P44tW8WKBFiAiQYfbNekbQMwRYVy','user','ak_26fc9e3809162f40','2023-01-27 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$jJ1rANA7TJ.A5iw0NSjuJeGC/Kwcamwpf4oq92JgkDOkoBV5D/VW4','user','ak_8eabfabf51fd121c','2023-05-11 10:13:00',NULL);

