scheam updated - PdfGroup, enums

This commit is contained in:
2025-09-20 19:46:37 +05:30
parent 4913b03a03
commit 14cf898e3a

View File

@@ -188,15 +188,13 @@ model InsuranceCredential {
model PdfGroup { model PdfGroup {
id Int @id @default(autoincrement()) id Int @id @default(autoincrement())
title String title String
titleKey PdfTitle? titleKey PdfTitleKey?
category PdfCategory
createdAt DateTime @default(now()) createdAt DateTime @default(now())
patientId Int patientId Int
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade) patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
pdfs PdfFile[] pdfs PdfFile[]
@@index([patientId]) @@index([patientId])
@@index([category])
@@index([titleKey]) @@index([titleKey])
} }
@@ -211,14 +209,8 @@ model PdfFile {
@@index([groupId]) @@index([groupId])
} }
enum PdfTitle { enum PdfTitleKey {
INSURANCE_CLAIM INSURANCE_CLAIM
INSURANCE_STATUS_PDFs
OTHER
}
enum PdfCategory {
CLAIM
ELIGIBILITY_STATUS ELIGIBILITY_STATUS
CLAIM_STATUS CLAIM_STATUS
OTHER OTHER