Сделана логика создания вм на сервере, управления нет

This commit is contained in:
Georgiy Syralev
2025-09-20 18:30:33 +03:00
parent f254597b1a
commit b7bdd15948
4 changed files with 23 additions and 14 deletions

View File

@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE `server` ADD COLUMN `diskTemplate` VARCHAR(191) NULL,
ADD COLUMN `node` VARCHAR(191) NULL,
ADD COLUMN `proxmoxId` INTEGER NULL;

View File

@@ -33,12 +33,15 @@ model Server {
userId Int
tariffId Int
osId Int
status String @default("stopped") // running, stopped, etc
status String @default("stopped")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id])
tariff Tariff @relation(fields: [tariffId], references: [id])
os OperatingSystem @relation(fields: [osId], references: [id])
node String?
diskTemplate String?
proxmoxId Int?
}
model User {