Only the backend maintainer is allowed to modify the database schema.
This includes editing:
- Entity classes
- DbContext
- Migrations
- Seed data structure.
- Start the database:
docker compose up -d- Stop the database:
docker compose down- Apply EF Core Migrations:
dotnet ef database update- Start the API:
dotnet run- If you need to reset the database completely (removes all data):
docker compose down -v✅ Allowed for all developers:
dotnet ef database update
docker compose up -d
docker compose down -v❌ Not allowed for other team members:
dotnet ef migrations add <Name>
dotnet ef migrations remove
dotnet ef database drop- Prevents migration conflicts
- Ensures consistent schema across all environments
- Avoids accidental data loss
- Keeps the backend stable and predictable
- Makes debugging significantly easier