mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
working on restore form.
This commit is contained in:
@@ -77,6 +77,31 @@ enum Role {
|
||||
admin
|
||||
}
|
||||
|
||||
model Organization {
|
||||
id String @id @default(cuid())
|
||||
slug String @unique
|
||||
name String
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
|
||||
projects Project[]
|
||||
|
||||
@@map("organizations")
|
||||
}
|
||||
|
||||
model Project {
|
||||
id String @id @default(cuid())
|
||||
slug String @unique
|
||||
name String
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
|
||||
organizationId String @map("organization_id")
|
||||
organization Organization @relation(fields: [organizationId], references: [id])
|
||||
|
||||
databases Database[]
|
||||
|
||||
@@map("projects")
|
||||
}
|
||||
|
||||
model Agent {
|
||||
id String @id @default(cuid())
|
||||
slug String @unique
|
||||
@@ -112,6 +137,9 @@ model Database {
|
||||
backups Backup[]
|
||||
restaurations Restauration[]
|
||||
|
||||
projectId String? @map("project_id")
|
||||
project Project? @relation(fields: [projectId], references: [id])
|
||||
|
||||
@@map("databases")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user