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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=35885;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$N4gkRpUUNovBh0q8EH9oLQ0SdJMOMA0I9vAvWVa8IfEuoB5w9Uznc','user','ak_78d1ae5eb215e309','2023-05-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$t5P1rLjs.r7WOqXDBqxcNRskeio1sXlKU.3z9y/R5Dq1lIdOSF9el','admin','ak_5df34e309710e8fb','2023-11-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$yeqYKrGV7kzT7wLPsiAd7.rSMrTnZ2yzj4MMke/yVL/q43kfcOF3v','user','ak_c01b37c16bedd219','2023-09-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$4MTi38Nr5HHXNhFMXDcHSC0yC7nIuJ1zPdKL8FqcE3XghvPSoUiqs','user','ak_f6f5f4ca4a4c5d25','2023-09-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$YXPAsRIkXueExKLpE4VbMonNS1oNW4TmeSQEFRD9PPFKy/KjSOqmA','user','ak_96f2ad46c8910815','2023-07-18 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$S6SRRaKz5Z5KNp/F/OhNR0.ZrqWo2O5PTptFCiynr0430M4UL1RC8','admin','ak_1bc80ffc6a55d38a','2023-11-04 10:05: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=30695;

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


