Add lastValidatedAt to license keys

This commit is contained in:
NeilClack
2026-09-10 13:18:15 -05:00
parent 1aecc51bbd
commit 0175cab0b4
7 changed files with 54 additions and 13 deletions
+9 -8
View File
@@ -195,16 +195,17 @@ model ProclamationCategorySubscriptionLevelLegacy {
}
model LicenseKey {
id String @id @default(uuid())
key String @unique
active Boolean
createdAt DateTime @default(now())
userId String?
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
email String?
id String @id @default(uuid())
key String @unique
active Boolean
createdAt DateTime @default(now())
lastValidatedAt DateTime?
userId String?
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
email String?
// Legacy subscription level. Retained in the database but unmanaged; hidden
// from the client and left NULL.
level String? @ignore
level String? @ignore
@@index([userId])
@@index([email])