33 lines
803 B
Markdown
33 lines
803 B
Markdown
# Supabase Directory
|
|
|
|
This directory stores SQL files for the project's Supabase/PostgreSQL database.
|
|
|
|
## Current Baseline
|
|
|
|
- `schema.sql` is the first registered database SQL file.
|
|
- Its documentation is in `docs/database/0001-initial-schema.md`.
|
|
- Its order is tracked in `docs/database/query-order.md`.
|
|
- Execution history is tracked in `docs/database/query-log.md`.
|
|
|
|
## Future Changes
|
|
|
|
Future schema changes should be added under:
|
|
|
|
```text
|
|
supabase/migrations/
|
|
```
|
|
|
|
Optional local/demo data should be added under:
|
|
|
|
```text
|
|
supabase/seeds/
|
|
```
|
|
|
|
Do not overwrite already executed SQL without also creating a new ordered migration and documenting why.
|
|
|
|
## Current Ordered SQL
|
|
|
|
1. `schema.sql`
|
|
2. `migrations/0002_add_freelancer_os_core_tables.sql`
|
|
3. Optional: `seeds/0001_demo_freelancer_os_data.sql`
|