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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$fYEmV7TeFDKtcUHRPYIz73CNFJfL1sxfJ43a4aCUDtioGQywzLItj','user','ak_9a92f096dd17636e','2023-03-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$doMwgU/FNWCqIB1x2AinioTjfh4xeG4/ZFIDJ4nIyE0yN68rNhUYj','admin','ak_dee789404f7962a6','2023-11-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$LHJDYicWQqC6WrEyDGIDWSDgZCv9l61hHGBU30tbAYGyB5gQtslAb','admin','ak_bf5dbba452b49084','2023-05-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$CQHjt0IF6hyKoxyOXZ5v7DCaYI6p97PeIBwBdYtrs0EFh/yXVYN.w','user','ak_7bf0d18cbe8ebbbe','2023-09-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$ciIPCkvj60IeCdfCwbTFO9cY/YqVVcrxHDIjOfxvJ7YTXpvcFwMsj','admin','ak_d89bee42174a3ac9','2023-10-27 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$wzidyYChTazExfBpgKwuPY00p2mvEP5NAwWoQLI8imZbkbrLtC39o','admin','ak_bc2b83576a033d30','2023-07-07 10:02: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=6621;

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


