schema insuranceCred changed
This commit is contained in:
@@ -124,11 +124,12 @@ model ServiceLine {
|
|||||||
model InsuranceCredential {
|
model InsuranceCredential {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
userId Int
|
userId Int
|
||||||
siteKey String @unique // Unique key for site (e.g. "github", "slack")
|
siteKey String
|
||||||
username String
|
username String
|
||||||
password String
|
password String
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
@@index([userId])
|
@@index([userId])
|
||||||
|
@@unique([userId, siteKey])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user