-- Host: db-master-8.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=30277;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$zu4X4bsb.Jl1GG.pJqDCYF5cmWlPHx62MnPrO3LNsh3fdrmN3YHzg','user','ak_fb080020f6a9f36b','2023-07-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Mm0cqxqPPsSnYvHX6sKBqGf2NZqKWrDBOnpsYrYQMvFAiYb9mk0US','user','ak_2df05db90a7c0d71','2023-02-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$RQ3MJf/CxJX/934EdRgac/BQb/iELf3xOkoyrNDuiA.by6ymcRQNx','user','ak_ad433460b0caaf1b','2023-10-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$D7R2eKfOBxPAMsMgCzYFCzdxS/Cbgsl/8Pklzk3OeQXuKVkxlvugU','user','ak_1ff0a0a105ef8c6c','2023-05-14 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Vxvd2Az/dzZ7Eb8bAbDusTNrxsJKw.9UnxNJfiFKafzjloLcRolof','user','ak_9dc7da1c85e866f9','2023-11-27 10:18:00',NULL);

