-- Staff preview grants (tenant-registry ADR 0001 follow-up, Werkmeister W1): -- a tenant may use a product that is not for sale yet (catalogue enabled = -- false) while preview is true and preview_expires_at lies ahead. A real -- booking clears both. Kept apart from expires_at, the booking's period end. ALTER TABLE tenant_products ADD COLUMN preview BOOLEAN NOT NULL DEFAULT FALSE, ADD COLUMN preview_expires_at TIMESTAMPTZ, ADD CONSTRAINT tenant_products_preview_expiry CHECK (preview = (preview_expires_at IS NOT NULL));