huydang-agestvn/Support-Ticket-SLA-Processing-System — reverse-engineered prompt
Reverse engineered prompt
Build me a backend system for managing internal support tickets and SLA reporting.
It should let requestors create tickets, agents view and update ticket statuses through the normal flow, and managers see daily SLA performance reports. Add login with role based access so requestors, agents, and managers can only use the right actions.
I also want a batch import feature for historical ticket events. It should handle large files efficiently, validate each event, reject duplicates or invalid records, and create a downloadable CSV audit log for anything rejected. Store those audit logs in local object storage.
Please include a daily scheduled job that calculates SLA metrics around 5 PM and emails an HTML report to the manager. The app should expose REST APIs, include Swagger docs, use PostgreSQL, and be runnable with Docker Compose. Also include centralized logs that can be viewed in Grafana with Loki.
Keep the code clean and testable, add basic tests, and include clear setup instructions with environment variables. Look up current docs online if you need to.
Want more depth? Deep Reverse