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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$cUIFyoQQ9t8GtWN0Ou51LVn4c4FgkCfluPKdsjPvHchdM2eP9FXKj','user','ak_e9a594266ca934d7','2023-12-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$MeThB4yyXAhoXKqssn3ZvCzu1j30pv4IQMZDxat/ldKG3qPQrfTCl','user','ak_821ea9c9e8ffc2f0','2023-07-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$oRwYyT2j/JNsEnQd.xMAS17INZWQbP3fantPqatn1snbC8dvSH5FW','user','ak_330b54c3728ab5ac','2023-09-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$sxUE9l5v980b2aufyI.i.YuLk9n8uvSDvtP/69wdQ/JYMN1vcOSG2','admin','ak_139947a1df674700','2023-12-16 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$wQnBtnW7XhMGuUo7sMLXSSnRk2c8TCXgBKkMg3YV.D4L17UyFRSRM','user','ak_2156ae52e5bf25c5','2023-01-16 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$tEmjMwgTQy8dCbfKBgWjAgdq9NKTfz7I6dmVXYsdYN/8AHsWUP1R1','user','ak_23bf3dae449dbe89','2023-09-09 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@internal.io','$2b$12$Zl4oDqVhfphitNOEvTePgG5b9nT.tNWFhMzMJIIxtY3RjxlfC.Zhu','admin','ak_822fd963695bb89c','2023-05-02 10:11:00',NULL);

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

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


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

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


