mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on the API route for upload and the ping. adding types for actions.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `backupToRestore` to the `databases` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "databases" ADD COLUMN "backupToRestore" TEXT NOT NULL,
|
||||
ADD COLUMN "isWaitingForBackup" BOOLEAN NOT NULL DEFAULT false;
|
||||
@@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "databases" ALTER COLUMN "backupToRestore" DROP NOT NULL,
|
||||
ALTER COLUMN "isWaitingForBackup" DROP NOT NULL;
|
||||
@@ -97,13 +97,15 @@ enum Dbms {
|
||||
}
|
||||
|
||||
model Database {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
dbms Dbms
|
||||
generatedId String @unique
|
||||
description String?
|
||||
backupPolicy String? @map("backup_policy")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
dbms Dbms
|
||||
generatedId String @unique
|
||||
description String?
|
||||
backupPolicy String? @map("backup_policy")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
isWaitingForBackup Boolean? @default(false)
|
||||
backupToRestore String?
|
||||
|
||||
agentId String @map("agent_id")
|
||||
agent Agent @relation(fields: [agentId], references: [id], onDelete: Cascade)
|
||||
|
||||
Reference in New Issue
Block a user