create Address table migration, inline prefill from order history, branded delete confirm
- prisma/migrations/20260529_add_address_table/migration.sql: CREATE TABLE IF NOT EXISTS Address with FK to User (CASCADE) and SaasTenant (RESTRICT), 3 indexes, updatedAt trigger β root cause fix
- GET /api/account/addresses: embed suggestion inline (most recent order shipping addr β User denormalised fallback) so the component needs zero extra round-trips
- saved-addresses-section: drop separate /api/user/recent-order-address fetch; use server-side suggestion already loaded at mount; replace window.confirm() delete with branded AlertDialog; add Sparkles pre-fill notice when form is auto-populated from order history
3f41a05View on GitHub β