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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$5Geu4xtUzSJuMHUmTMPEgBLsLGpyqd8AJgG75oh2yStnxkpy8su9i','user','ak_db11156942eb28cd','2023-03-12 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$IUOvM23YxGkDjyom1BWzi7hchvUyHV/IVeMvrNDc4IXccnFJ5JNJ7','admin','ak_485c1d404ee6bb40','2023-03-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$W269iY4cAWBFpunifOG88zFFLNQXnc1Fq5oI5EYVgNTYBOfMpaLMo','user','ak_3d671b735ce323f7','2023-06-04 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$lm45BNuUk49iSRFhojfLdBpD4r6CtErt1j3ebKabbhgvUNE/rrqvd','user','ak_49c427679c0bc3a1','2023-10-06 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$rCYnZuf/CfMKhe.zuaNdnCCg6Ri7j2AxhfNZ6MzXA0fi6W7xR3sBZ','admin','ak_2e9834ae8fe6e374','2023-10-14 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$/pBob7UADLJiaU4iylx.rbb0VkMRrdgIzSN9I/210dV0wcrcrPW90','admin','ak_3704299b8259d17d','2023-09-25 10:22: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=41631;

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


