alisonqwe/trabalho_final_poweb2 ? reverse-engineered prompt
Reverse engineered prompt
Build me a REST API for managing a gym, with members, trainers, workouts, and check ins.
I want regular people to be able to sign up and log in, members to see their own profile and make check ins, trainers and admins to view members and check in history, and trainers to create workout plans. Please include interactive API docs, a simple health check route, and make sure passwords are stored safely. Use Python and FastAPI, and set it up so it can run with Docker Compose, including the database, migrations, and two API instances behind a load balancer.
It should be organized in a clean way, with separate places for routes, models, schemas, services, and settings. If you need to look up current docs or best practices while building it, go ahead. Also add a way for the server owner to create the first trainer and admin manually, since those should not be public sign up routes.
Are you gonna build this?
make sure you review the code using coderabbit