connection profiles and ssh key encryption
This commit is contained in:
@@ -15,6 +15,7 @@ model User {
|
||||
createdAt DateTime @default(now())
|
||||
folders Folder[]
|
||||
connections Connection[]
|
||||
profiles Profile[]
|
||||
|
||||
@@map("users")
|
||||
}
|
||||
@@ -48,9 +49,28 @@ model Connection {
|
||||
clipboardEnabled Boolean @default(true)
|
||||
folderId String?
|
||||
folder Folder? @relation(fields: [folderId], references: [id], onDelete: SetNull)
|
||||
profileId String?
|
||||
profile Profile? @relation(fields: [profileId], references: [id], onDelete: SetNull)
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@map("connections")
|
||||
}
|
||||
|
||||
model Profile {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
protocol String
|
||||
username String?
|
||||
encryptedPassword String?
|
||||
privateKey String?
|
||||
domain String?
|
||||
clipboardEnabled Boolean?
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
connections Connection[]
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@map("profiles")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user