public booking flow: /book browse → magic-link signup → confirm

This commit is contained in:
2026-05-02 08:46:12 -04:00
parent 415813470a
commit 4c70fe2f39
12 changed files with 1116 additions and 22 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "name" DROP NOT NULL;

View File

@@ -24,7 +24,7 @@ model User {
id String @id @default(cuid())
email String @unique
emailVerified DateTime? @db.Timestamptz(3)
name String
name String? // Nullable — Auth.js magic-link signup creates users without a name; captured later at first booking
image String? // Auth.js convention; unused for now but adapter expects it
phone String?
role Role @default(CUSTOMER)