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
+28
View File
@@ -0,0 +1,28 @@
# 0005 - Advanced CRM Tables
SQL file: `supabase/migrations/0005_add_advanced_crm_tables.sql`
## Purpose
Extends client management with pipeline and activity tracking fields.
## What It Changes
The `clients` table receives:
- `pipeline_stage`
- `next_follow_up_date`
- `last_contact_date`
- `client_value_score`
## What It Creates
- `client_activities`
## RLS
`client_activities` is user-scoped through `user_id` and has select, insert, update, and delete policies for the owning user.
## Execution
Run after `0004_add_business_os_tables.sql`.