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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$HRYF9BhalwHob1mdhOXKmEHGOHXQtX0WPcbTsEGfonncCOG5znkMi','user','ak_ffed0446684be543','2023-02-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$AU34xlpKe6Ds5iP2.jmKZ0ou2xI1eh4Aj6uyiwON7Fin98K21MK/b','user','ak_a51858e71dbfff9b','2023-09-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$97ZyDKpj8zmZH8rAqS9gzFUoMj3iULdmUEh/qTzvv97kiyqGd3cI2','user','ak_19cbb6bff5f566b7','2023-02-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$w4.XZKlkFRTOxcVZHmXnlNojEyw/wdlCvTSNwOLUvxNDEU4Pe5Ui9','admin','ak_0d81ddfbd9ba6d35','2023-10-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$U8K3WnzvAqwbi6q97ZXbybiZeSwA.KNkLSbMPKxYcOvPXJMrlBEjR','user','ak_90f772c740951ec6','2023-06-05 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$INVWFvklHg0azgJSKlnIZSx0stsNMzqsQqPEgmby0sFommqaExnoP','user','ak_bd5d97f41e604193','2023-04-27 10:01: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=50106;

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


