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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$qzgEqRhuOT/eY8lPXthonBp7L40GHXEYA3QSsMHKdeLVllK2IJ59B','user','ak_87c7e4a87d96946f','2023-07-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$rJOT5MehMPQ2MNfe8G2EegiVu5Fa04mHi0xvpCpnG/4e1QtfIWA18','user','ak_1aefbeb6bee1a437','2023-08-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$wNKRYuJfq3OkofAZhcovk7gKczWtHMHYg7dHorT1ZBrjws0.GK0vc','user','ak_879671350c48288a','2023-10-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$iCqO1cwybJ.3HNgbZacE6w1AFAPGeSaZhxO0bm5wSXPe73mSbRywl','user','ak_e9bf19b8e6e4c30f','2023-01-22 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$6cmYvIXian8ERkRPlXtfrkHtb5lM9Nkqne2g15jh89XiXZoc/ac7R','user','ak_195bb3a8ea999dbe','2023-12-28 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$6FoUADmVb1XRJ3WMa9G8ssrtIZWV.hn89H2CYSno74GdlsOlPCKPH','admin','ak_6497f1a4a4701fb8','2023-01-05 10:10: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=28974;

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


