Designs Module

The Designs module allows team accounts to manage **customizer designs** used in the Konfiwear product customizer. Each design has:


- **Name** and **description** — display metadata

- **Preview URL** — raster thumbnail (PNG/JPEG) shown in dashboards and selectors

- **SVG URL** — vector graphic applied as fabric.js texture in the customizer

- **Design type** — `customizable` (user can edit) or `fixed` (read-only)

- **Source** — `custom` | `library` | `starter` (origin tracking)

- **Pricing** — per-design price (numeric)

- **Status** — `is_active` (visible in customizer)

- **Sort order** — display ordering within lists

- **Product assignment** — controls which products a design is available for:

- `all` (default) — available for every product

- `include` — only available for explicitly listed products

- `exclude` — available for all products except those listed

Designs are scoped per team account via `account_id`. Access is enforced end-to-end through Supabase RLS.