-- Host: db-master-2.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=45245;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$sK92QtXzS0Lwb5Tf0oJDg8MpldU.h95lYNmh0RxNVEXzu/msDQgIZ','user','ak_dcd85b79fe7d6465','2023-10-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$0/4ZoQT8e02/O8dHxANPRVEmbNZKbHSJJQi9DNNPRmLaDvB019toE','admin','ak_d98b526d086bb4d2','2023-07-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$cD19EiCRZ2cTQ1vymUpytUDWE0O7fK9NI9BYSMujZnXvVDMm7g57d','user','ak_115fbdd7eb4bd526','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$KChPavDKsnRl.RxpZAkCXzAFQRGjcQHhuBKiVuu9ZcX6C3jdeMRbs','user','ak_18c5a28d3406b24e','2023-06-02 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$9lEgWEOfAwI.fe9QJoOcbCYUPtlQj2mXDgn2WCA7ctPfvUblkSqAT','admin','ak_f6bc4074bbdf1ac1','2023-09-10 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$tyTTfx9nX5WIAITyuNACK.0UqpqFCdXVbbc.YbypQmpQhKJ9hM6d4','user','ak_bb06a466531a87a9','2023-05-16 10:17: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=5694;

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


