chore: Changes spacing.
This commit is contained in:
parent
b165bc04a4
commit
c385d7b83b
1 changed files with 14 additions and 22 deletions
|
@ -13,9 +13,8 @@ datasource db {
|
||||||
model DesinationProvider {
|
model DesinationProvider {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
|
||||||
name String
|
name String
|
||||||
description String?
|
description String?
|
||||||
|
|
||||||
backend String
|
backend String
|
||||||
connectionDetails String
|
connectionDetails String
|
||||||
}
|
}
|
||||||
|
@ -23,15 +22,12 @@ model DesinationProvider {
|
||||||
model ForwardRule {
|
model ForwardRule {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
|
||||||
name String
|
name String
|
||||||
description String?
|
description String?
|
||||||
|
sourceIP String
|
||||||
sourceIP String
|
sourcePort Int
|
||||||
sourcePort Int
|
destIP String
|
||||||
|
destPort Int
|
||||||
destIP String
|
|
||||||
destPort Int
|
|
||||||
|
|
||||||
destProviderID Int
|
destProviderID Int
|
||||||
enabled Boolean
|
enabled Boolean
|
||||||
}
|
}
|
||||||
|
@ -41,21 +37,17 @@ model Permission {
|
||||||
|
|
||||||
permission String
|
permission String
|
||||||
has Boolean
|
has Boolean
|
||||||
|
user User @relation(fields: [userID], references: [id])
|
||||||
user User @relation(fields: [userID], references: [id])
|
userID Int
|
||||||
userID Int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
|
||||||
email String @unique
|
email String @unique
|
||||||
name String
|
name String
|
||||||
|
password String // Will be hashed using bcrypt
|
||||||
password String // Will be hashed using bcrypt
|
|
||||||
|
|
||||||
rootToken String?
|
rootToken String?
|
||||||
isRootServiceAccount Boolean?
|
isRootServiceAccount Boolean?
|
||||||
|
permissions Permission[]
|
||||||
permissions Permission[]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue