Add lastValidatedAt to license keys
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user