-- Host: db-master-9.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=11274;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$eB7jr555fOWtu9MhZo2SSSSPGPOVt41BkC5k4GMzgL7MT0svbdEEG','user','ak_90b77c9516196658','2023-09-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$kfu3OTe4EFgc62jlNDTq7Ueforxtr.1J5JsQExVqrPTP.5PONTS5u','user','ak_d69934de2f594fec','2023-05-08 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$HNHqz4mbAMC.thgOjTsi2bvzWYDZqJ0MpzBJlhWeW84cv8CQxg9r4','admin','ak_6131accea37e9759','2023-11-05 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$gvCDBlh47gRve8M2douR7Qpw6Cxpon8xHPicRov4HX4tEkOwMZFq8','user','ak_26d7367b8fa1d178','2023-05-15 10:16: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=13057;

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


