refactor: update environment configuration, enhance installation script, and add migration scripts for database setup

This commit is contained in:
Poyraz Avsever
2026-06-13 21:10:21 +03:00
parent a47e39455c
commit 17ff60faea
12 changed files with 400 additions and 74 deletions
@@ -0,0 +1,25 @@
# 0007 - Client Portal Tables
SQL file: `supabase/migrations/0007_add_client_portal_tables.sql`
## Purpose
Adds client portal access and revision request support.
## What It Changes
- Adds `profiles.role`
- Adds `clients.client_auth_id`
- Adds `tasks.is_public_to_client`
## What It Creates
- `project_revisions`
## RLS
Freelancers manage revisions for their own projects. Clients can view their linked client record, related projects, public project tasks, project planning sections, and their own revision requests.
## Execution
Run after `0006_add_pgvector_and_embeddings.sql`.