-- Buyer-facing shop profile, kept beside `shops` rather than widening it, so the -- identity/status model both consoles already consume stays untouched. -- -- Schema only: a profile hangs off a shop, and the demo shops are created by -- scripts/seed-demo.mjs, so the demo profile content lives there. CREATE TABLE shop_profiles ( shop_id UUID PRIMARY KEY REFERENCES shops (id) ON DELETE CASCADE, logo TEXT, banner TEXT, company TEXT, region TEXT, address JSONB, notice JSONB, after_sale JSONB, -- Platform-set profile scores. There is no review model behind them. score_rating DOUBLE PRECISION, score_agreement DOUBLE PRECISION, score_service DOUBLE PRECISION, score_speed DOUBLE PRECISION, updated_at TIMESTAMPTZ NOT NULL DEFAULT now() );