reset-infra 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +17 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -51,11 +51,27 @@ model User {
|
|
|
51
51
|
alerts EmergencyAlert[]
|
|
52
52
|
streak Streak[]
|
|
53
53
|
absences LogAbsence[]
|
|
54
|
+
is_deleted Boolean @default(false)
|
|
55
|
+
deleted_at DateTime?
|
|
56
|
+
password_reset_tokens PasswordResetToken[]
|
|
54
57
|
|
|
55
58
|
@@map("users")
|
|
56
59
|
@@schema("auth")
|
|
57
60
|
}
|
|
58
61
|
|
|
62
|
+
model PasswordResetToken {
|
|
63
|
+
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
|
64
|
+
token String @unique
|
|
65
|
+
user_id String @db.Uuid
|
|
66
|
+
expires_at DateTime
|
|
67
|
+
created_at DateTime @default(now())
|
|
68
|
+
|
|
69
|
+
user User @relation(fields: [user_id], references: [id], onDelete: Cascade)
|
|
70
|
+
|
|
71
|
+
@@map("password_reset_tokens")
|
|
72
|
+
@@schema("auth")
|
|
73
|
+
}
|
|
74
|
+
|
|
59
75
|
// ==========================================
|
|
60
76
|
// 2. SCHEMA: CORE
|
|
61
77
|
// ==========================================
|
|
@@ -194,6 +210,7 @@ model SupportContact {
|
|
|
194
210
|
|
|
195
211
|
user User @relation(fields: [user_id], references: [id], onDelete: Cascade)
|
|
196
212
|
|
|
213
|
+
@@unique([user_id, email])
|
|
197
214
|
@@map("support_contacts")
|
|
198
215
|
@@schema("emergency")
|
|
199
216
|
}
|