Skip to content

salt-community/PulseCare-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

311 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Database Schema Change Policy (Read Before Working on Backend)

Only the backend maintainer is allowed to modify the database schema.
This includes editing:

  • Entity classes
  • DbContext
  • Migrations
  • Seed data structure.

🚀 Getting Started – PulseCare Backend


🐳 Start the SQL Server Database (Docker):

  1. Start the database:
docker compose up -d
  1. Stop the database:
docker compose down
  1. Apply EF Core Migrations:
dotnet ef database update
  1. Start the API:
dotnet run
  1. If you need to reset the database completely (removes all data):
docker compose down -v

🔒 Database & Migrations Policy

✅ 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

Why this policy exists

  • Prevents migration conflicts
  • Ensures consistent schema across all environments
  • Avoids accidental data loss
  • Keeps the backend stable and predictable
  • Makes debugging significantly easier

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages