add: databases WIP
This commit is contained in:
@@ -73,6 +73,29 @@ model Workspace {
|
||||
updatedAt DateTime @updatedAt
|
||||
Application Application[]
|
||||
Deployment Deployment[]
|
||||
Database Database[]
|
||||
}
|
||||
|
||||
model Database {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
provider DatabaseProvider
|
||||
|
||||
host String
|
||||
port Int
|
||||
username String
|
||||
password String
|
||||
|
||||
workspaceId String
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
Workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade)
|
||||
}
|
||||
|
||||
enum DatabaseProvider {
|
||||
VITESS
|
||||
REDIS
|
||||
}
|
||||
|
||||
model Application {
|
||||
|
||||
Reference in New Issue
Block a user