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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reset-infra",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "ReSet – Database infrastructure, Prisma migrations & Zod schema generation",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
  }