E-003: Tenant Chat App
Status: Done Owner: @bilal
What Was Done
- Conversations + Messages schema (Prisma + migrations)
- Tenant-facing chat UI (OTP login, conversation list, message bubbles)
- Chat API routes (send, conversations, upload, dev impersonation)
- Reuses tenant-engine pipeline (no duplication)
- Seed conversations script (10 scenarios, 35+ messages)
- Chat file upload (storage bucket, service client, UI wiring)
Key Decisions
- Co-located route group
app/(chat)/— same Next.js app, different layout - OTP authentication via Supabase Auth
- REST API (not GraphQL) for chat endpoints
- Dev impersonation via cookie for local testing