feat: chuẩn bị backend cho tính năng anonymous user upload ảnh không cần đăng nhập

This commit is contained in:
2026-06-19 08:46:59 +07:00
parent 6f2dd0fc01
commit ef11309399
6 changed files with 125 additions and 5 deletions
+3 -2
View File
@@ -57,8 +57,8 @@ enum PrivacyLevel {
model User {
id String @id @default(uuid())
email String @unique
passwordHash String
email String? @unique
passwordHash String?
name String?
phone String?
address String?
@@ -66,6 +66,7 @@ model User {
createdAt DateTime @default(now())
isAdmin Boolean @default(false)
isBlocked Boolean @default(false)
isAnonymous Boolean @default(false)
createdTours Tour[] @relation("TourCreator")
tourParticipations TourParticipant[]