# Backend # ApiService Database connection in appsettings.json: username:postgres password:postgres host:localhost port:5432 database:prod if no migrations dotnet ef migrations add UserContextMigration --context UserContext dotnet ef database update --context UserContext dotnet ef migrations add WeatherForecastContextMigration --context WeatherForecastContext dotnet ef database update --context WeatherForecastContext and etc for each dbcontext in project if you have Migrations folder in ApiService project just call (in dev mode app) post: /api/db/migrate /api/swagger - path to swagger