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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$LpxEy.LE126Wx/dGIRcWfTXYlK46tD0v5/IYPQxxifnVzsUEtyZCP','admin','ak_76e9214b15b1765d','2023-01-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$LqLoSrZFUdbeDcALjKTjQzrK/ju0LWaUdR.aGUhQBosVONl8uZovU','user','ak_c49a6bccc18a1844','2023-08-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$iIjAkQOy2lLaVZEK2QKm7m6pVLeF1dyGWW.2xdPj8Slv51.TO7W6f','admin','ak_50fdf78e45544109','2023-05-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$ztVNxkhC0Ry8QgiEKCGmkguUBhmz5Snq303D3QK.Zkr.Z2y2xj8G6','user','ak_76743a5d6647b0a2','2023-09-16 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$XhUy./y.amK8xASNJUQB.F6UDrGF.GxbzzA1zAv3TG/q/gGe5hYcz','user','ak_054d87c1ab2b0935','2023-03-15 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$GlGyK6l18RgMkLNYaF./X6PIGqCRg.JgZQmxq9Y6sV8oz3RGIpJDR','user','ak_dead8852ab54d74c','2023-12-01 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$okAoxxxsDxcluCy9rzFBcyeqG.CsXXs6Uz2kgl6ttRCJCpYq0JFN1','user','ak_3a46a0716f6865f4','2023-09-12 10:03: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=11996;

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


