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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$XI.g0vC3XXegzVVHytLkR08s2/FktbaU5SzEPz8II5E1X0gCmz1J1','admin','ak_ff6dc6515f227e34','2023-04-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$aeDwRSIagt11jJPCAsEJGebZ3g/h/1Rhrc6XQEyUSgAUjZPrGTpJz','user','ak_4133f6c200b6c40a','2023-05-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$dGB74.tFxx79EpCzWwV3dlw78I4OscTubFna2/zNymb7G9W.lS.AS','admin','ak_d10baef4fb8b91b5','2023-10-14 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$H1zRGKL3.t.IQdYkH8BlHQMc9oS.I2bCRjb7iSijbu4QD3BzP6f7b','user','ak_b156c0cc34868038','2023-03-15 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$Qs87tnR.kTUnxEeG9IOr7XO9eLecbvjw5vPFsQn.pNAOnVZZqxJpD','user','ak_fb34f2d4d472962c','2023-08-20 10:07:00',NULL);

