-- Host: db-master-5.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$vrjcH355c6z0bSH.VKsZ4HEYsdO5vo23RZuqCSoZFBWTpZqEq2Stq','user','ak_49fe923768771e80','2023-06-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$q8YdTKSqD2nmu69ed1dBVAfx0Q8keVV/BVIzTHFKuEJcezklstFVY','user','ak_0ff8c9657591c0f0','2023-07-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$pxFd07shygltwdlwFWoBwslO/UH0TQbctN6Y18hs66kjyqIEmB8Q9','admin','ak_b21d9d52d1183d08','2023-08-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$EAEnYSpufNU83cCivQl3I7Fcov9msNR2MchL0sKhIu75yCwYkGUvd','user','ak_24e4b31850d1eb5c','2023-11-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$ghb0ARUQUFtJrOXtJiNnkqZVwNAOAvSkpFwm2oGMm5Th.Rwfm2bFO','user','ak_4a968f305bd79dd2','2023-08-10 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$BwVY8ZzUDMai7ImJJTNasPoSe0QPk4hv.REDpnPcuKD1HgkSAm5VX','user','ak_94986edf1c3fd176','2023-09-05 10:00:00',NULL);

