mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
7 lines
302 B
SQL
7 lines
302 B
SQL
-- Business-scoped customer enable/disable (does not deactivate the global user account)
|
|
ALTER TABLE business_customers
|
|
ADD COLUMN IF NOT EXISTS is_enabled BOOLEAN NOT NULL DEFAULT TRUE;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_business_customers_is_enabled
|
|
ON business_customers (business_id, is_enabled);
|