a7medS3yed/Hotel_Managment_System — reverse-engineered prompt
Reverse engineered prompt
Build me a backend API for a hotel management system like this repo describes. It should let admins, staff, and guests log in securely, with roles deciding what each person can do.
Guests should be able to register, log in, book available rooms, submit feedback, and request hotel services. Admins should be able to manage rooms, room images, bookings, hotel services, feedback, and assign staff to service requests. Staff should be able to see assigned service requests and update their status.
Please include JWT login, role based access, clean error handling, validation, filtering, sorting, and pagination for rooms. Bookings need availability checks so guests can’t double book rooms. Feedback should include an OpenAI moderation check if configured, with a safe fallback if it’s not available.
Use ASP.NET Core Web API with SQL Server and Entity Framework Core, keep the code organized with a clean architecture style, and add structured logging with slow request detection. Also make it easy to test the API in Postman.
Want more depth? Deep Reverse