Keep legacy subscription tables as unmanaged instead of dropping them

This commit is contained in:
NeilClack
2026-09-10 11:48:49 -05:00
parent d89fc6837c
commit 4a1777de87
4 changed files with 40 additions and 1 deletions
+6
View File
@@ -130,6 +130,9 @@ model Proclamation {
groupId Int
group ProclamationGroup @relation(fields: [groupId], references: [id])
userProclamations UserProclamations[]
// Legacy subscription-level FK. Retained in the database but unmanaged; the
// FK constraint is dropped and the value is left NULL. Hidden from the client.
subscriptionLevelId Int? @ignore
}
model ProclamationGroup {
@@ -198,6 +201,9 @@ model LicenseKey {
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
@@index([userId])
@@index([email])