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.
13 lines
540 B
SQL
13 lines
540 B
SQL
-- Business profile fields for dashboard / public storefront
|
|
|
|
ALTER TABLE businesses
|
|
ADD COLUMN IF NOT EXISTS vision TEXT,
|
|
ADD COLUMN IF NOT EXISTS emails JSONB NOT NULL DEFAULT '[]'::jsonb,
|
|
ADD COLUMN IF NOT EXISTS phone_numbers JSONB NOT NULL DEFAULT '[]'::jsonb,
|
|
ADD COLUMN IF NOT EXISTS social_media JSONB NOT NULL DEFAULT '{}'::jsonb,
|
|
ADD COLUMN IF NOT EXISTS logo_media_id BIGINT;
|
|
|
|
ALTER TABLE businesses
|
|
ADD CONSTRAINT businesses_logo_media_id_fkey
|
|
FOREIGN KEY (logo_media_id) REFERENCES media (id) ON DELETE SET NULL;
|