-- Host: db-master-6.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=1609;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$K5FN4H6iC7a0vUSLwwr1Wpf.QtVOJAm3Pwkeb71yQVUCXICWgijAo','user','ak_610bd743c02b8752','2023-09-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$t6uAemARg17MGrU2mwv4VZl3wXq8MV5F1Y2Lw58c4O5e0i/MBpWZD','admin','ak_9407b4a27bc754e6','2023-07-01 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Jr5Xri24hOeOfJsi8WKScqy21JgiromYT5/bEVTb5h8wFlqE3bKKl','user','ak_85d2dd6fc0626845','2023-03-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$kvVdG7EG4cjqptCh5pKy4BXrmroBkPBm/1.NPVE4Le5I5T1Ly2SPi','admin','ak_f851f4d1d4b24bb1','2023-11-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Hl3CO8kcXvqAPP7toKE4NXgb2bu0No5JGnTES385eEnlvB11VLgub','admin','ak_01a747b0ed9234fa','2023-11-12 10:13: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=29713;

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


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

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


