npiProvider - v1
This commit is contained in:
@@ -25,6 +25,7 @@ model User {
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
staff Staff[]
|
||||
npiProviders NpiProvider[]
|
||||
claims Claim[]
|
||||
insuranceCredentials InsuranceCredential[]
|
||||
updatedPayments Payment[] @relation("PaymentUpdatedBy")
|
||||
@@ -114,6 +115,20 @@ model Staff {
|
||||
claims Claim[] @relation("ClaimStaff")
|
||||
}
|
||||
|
||||
model NpiProvider {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
npiNumber String
|
||||
providerName String
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, npiNumber])
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
|
||||
enum ProcedureSource {
|
||||
COMBO
|
||||
MANUAL
|
||||
|
||||
Reference in New Issue
Block a user