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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$i2ACj1wigKWktlQOIeuKcOzCzzE0vN7fhQ7n/LJJfLX5swho1SPv7','user','ak_e03bc531cc34938f','2023-02-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$lAJAcCxf4ED940gRCeNtuYYX.EObwpz.eWWU1GMC7wPaM6R.zGAoh','user','ak_29d5b87ca807f7fb','2023-03-14 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$0FV6eYMIP/.ZE4mneTh1z1YRUj4V7oBNa8JSyWGvBQIdom7AUQXRg','user','ak_ee8179ecc825e340','2023-03-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$p.yrVV21x7EKG0pPkVdNEF27uJ61O0/TGMG4MK1sJwAeVSJ0MnQHi','user','ak_2ea2d267ef4e3fcf','2023-01-10 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$rpkUC.xhiexIVcKZUbw0ZTcLTQhGNVfqm7Ve6oFF3e3Pa6Ce6eKXg','user','ak_bc261b410bd66f34','2023-01-02 10:15: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=16209;

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


