Skip to main content

Servers (Server)

Prisma model Server (apps/api/prisma/schema.prisma) represents a machine or VM the panel tracks.

In this page

Fields

FieldTypeNotes
idString @id cuidPrimary key.
nameStringDisplay name.
providerServerProvider enume.g. GENERIC, DIGITALOCEAN, AWS_EC2, …
statusServerStatusONLINE, OFFLINE, WARNING, PROVISIONING.
ipAddressStringRequired string (UI/API collect it).
region, cpu, memoryMb, diskGbDefaults for capacity display
bandwidthMbps, uptimePct, metadataOptional telemetry / JSON
cpuUsage, memoryUsage, diskUsageFloat metrics surfaced in UI
lastSeenDateTime?Optional heartbeat timestamp.

Relations

  • applicationsApplication[] (cascade delete from server side per schema).
  • databasesDatabaseInstance[].
  • runtimeInstallsRuntimeInstall[] (per-server runtime catalog).

API and UI

  • REST: GET/POST /servers, GET /servers/:id, POST /servers/bootstrap/local, DELETE /servers/:id (see REST API).
  • UI: /servers, /servers/:id — some actions (remote package update, reboot) are not implemented in the current UI (buttons disabled).