TurboPanel Docs
Database

Resource Tree and Tagging

Workspace → project → environment → service → hosting / container, plus the principals, tenancies, bindings and variables that hang off them, and the free-form tag and marker tables.

Tables in this group: binding, container, environment, folder, hosting, hostname, login, marker, placement, principal, project, service, share, tag, tenancy, variable, visitor, workspace.

binding

Join edge attaching a database login to a consuming compose service; materializes system-owned variable rows for deploy credential injection.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
login_iduuidyesThe login row whose credentials are injected; cascade-deleted with it (login gone, binding gone).
service_iduuidyesConsuming compose service; ON DELETE RESTRICT so a service with bindings cannot be deleted.
database_iduuidyesThe database the credentials point at; ON DELETE RESTRICT so a database in use cannot be dropped.
key_prefixvarchar(64)yesEnvironment variable prefix for the emitted credential keys (default DATABASE), unique per service; identifier charset, 1-64 chars.
presetvarchar(16)noApp naming preset whose unprefixed names this binding also emits; NULL means the plain engine names when is_emit_engine_defaults is true.
is_emit_engine_defaultsbooleanyesTrue when the binding also emits unprefixed names (its preset, or the plain PG*/MYSQL_* names when preset is NULL); at most one such binding per service.

container

Pins one Docker container to a service and the server observed to host it; rows are pre-allocated at deploy and upserted from the daemon's post-deploy report.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoFree-form jsonb accepted from POST /containers and PATCH with identity keys stripped; no platform code path writes or reads it.
optionsjsonbnoFree-form jsonb accepted from POST /containers and PATCH with identity keys stripped; no platform code path writes or reads it.
service_iduuidyesParent service row (on delete restrict).
server_iduuidyesObserved placement: the server hosting this container (RESTRICT), distinct from the desired pin on environment.server_id.
statustextyespending until the daemon reports, then Docker's compose ps State verbatim (created through dead), unknown for an unlisted state, exited on stop.
container_idtextnoDocker container id from the daemon's report; NULL between pre-allocation and the first report, and reset to NULL on an empty (stop/destroy) report.
container_nametextyesDocker container_name; uuid naming yields the service UUID plus -N per ordinal, -in for ingress, -ha for Orchestrator; custom keeps authored names.
roletextyesservice for workload or engine replicas, ingress for the per-service Traefik or shared ProxySQL frontend (ordinal 1), turbopanel for the platform stack.
compose_service_nametextyesCompose service key the container was started under, as reported by the daemon; multi-instance clones carry a -N suffix on the base key.
ordinalintegeryes1-based instance index within the service, unique with service_id and role; ingress rows are always 1 and managed replicas match replica.ordinal.

environment

One deployable copy of a project (staging, production) pinned to a server and deployed as a unit; created via the API or by the platform for system projects.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoClient jsonb; the promoted keys serverId and component are stripped on create and patch so placement and system identity never live here.
optionsjsonbnoJsonb: compose overlay merged at deploy, plus deploy settings deployStrategy, migrations, drainSeconds, healthTimeoutSeconds, rollbackWindowMinutes.
project_iduuidyesParent project row (on delete restrict).
server_iduuidnoDesired whole-server placement pin and single source of truth; NULL inherits project.options.defaultServerId at deploy, lifecycle and stop.
nametextyesScope folder name on every server, under environment_name_check (lowercase letters, digits, _ and -, up to 32 chars, not reserved); unique per project.
generationintegeryesMonotonic desired generation, incremented once per deploy plan by bumpEnvironmentGeneration and fanned into deployment.desired_generation.
descriptiontextnoOptional free-text description written by the client API; the first environment is created with 'Default environment'.
is_primarybooleanyesTrue for the project's one primary environment: the landing, the status and the source a new environment copies. Unique per project.
is_pinnedbooleanyesTrue when the owner pinned the environment; pinned environments are listed right after the primary one.

folder

One service or volume folder on one server, the record of what exists under a site owner scope; it locks environment, asset, project and organization naming.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesParent server row (on delete restrict).
principal_iduuidyesParent principal row (on delete restrict).
environment_iduuidnoParent environment row (on delete restrict).
service_iduuidnoParent service row (on delete set null).
storage_iduuidnoParent storage row (on delete set null).
slugtextyesFolder name of the asset, copied from its slug when the folder was planned.
kindtextyesservice or volume; decides which of service_id and storage_id can be set.
scopetextyesScope folder name exactly as created on the host: the environment name, or common for assets shared by every environment.
statetextyesplanned before the host has it, present, removing until the host confirms a delete, orphan found with no asset, missing gone from the host.
removal_notetextnoWhy the host kept a removing folder, in plain words, from its last answer; NULL when it has not refused.
orphan_alerted_attimestamp(3) with time zonenoWhen the organization was told this folder is an orphan, so one orphan sends one alert; NULL until then and again after it stops being one.

hosting

Routing entry for a service (hostnames or TCP/UDP ports, bind scope, TLS pin) rendered into Caddy and Traefik; written by the panel API or compose reconcile.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoCompose provenance markers composeOwned, composeServiceName, composeRoute, composeTlsMode, composeAdopted set by reconcile; other keys are client-set.
optionsjsonbnoValidated routing jsonb: hostnames, pathPrefix, targetPort, protocol, ports, bind (public, datacenter, local), proxy toggles, web hints.
service_iduuidyesParent service row (on delete restrict).
tls_iduuidnoOptional pin into the organization TLS library; NULL means Caddy tls internal (self-signed), and the pin is cleared when the certificate row is deleted.
ip_iduuidnoOptional pin to a registered ip row of scope public for ingress addressing; requires bind: public and is cleared when the ip row is deleted.
nametextnoDisplay label: compose reconcile sets it to the hostname on compose-owned rows, otherwise the panel API writes it; no format CHECK, app-side length cap.
descriptiontextnoOptional free-text description; panel-authored and preserved across compose reconcile.
protocoltextnoMirror of validated options.protocol (http, tcp, udp) kept so SQL can filter ingress decisions without a jsonb cast; NULL reads as http.
pending_attimestamp(3) with time zonenoWhen a waiting Let's Encrypt request was made because DNS did not point here yet; NULL when none is waiting, and the sweep retries every row with a value.

hostname

Uniqueness mirror of hosting.options.hostnames, one row per hostname, replaced on every hosting write so Postgres can enforce one hostname per organization.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
hosting_iduuidyesParent hosting row (on delete cascade).
routing_organization_iduuidyesOrganization whose routing owns the hostname, half of the unique key; today always the hosting's own organization, named for future cross-organization hosting.
hostnametextyesOne DNS name copied verbatim from hosting.options.hostnames by replaceHostingHostnames; unique per routing organization regardless of path prefix.

login

One engine role on one managed cluster; not a principal, which is only a site owner Linux user; written by the managed users API.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoInternal bookkeeping jsonb; the grant ledger (grants the panel applied) will live here. Nothing writes it yet.
managed_iduuidyesParent managed row (on delete cascade).
principal_iduuidnoSite owner Linux user the login shares its name with, cascade-deleted with it; NULL for a login made on its own and for the root and replication logins.
roletextyesroot is the cluster admin, replication the member-to-member login, user an operator login, backup the one login that takes backups.
usernamevarchar(255)yesName the customer typed; equals applied_username for plain names and for the root and replication logins.
applied_usernamevarchar(255)yesEngine role name created on the cluster; unique per cluster after trim and case-fold, and equal to the principal name when principal_id is set.
name_schemetextyesHow applied_username was derived from username: plain (same), partial (plus a random suffix) or random (no trace of it).
passwordtextnoWrite-only credential sealed as a tpsecret envelope, never returned on GET and resealed to tpdaemon for delivery.
grant_modetextyesWho sets the permissions on reconcile: recipe (the panel, from the named recipe) or self (the owner by hand, never reset).
recipetextnoThe permission set the panel applies when grant_mode is recipe: app, migrations, read-only, analyst, admin or backup; NULL for self.
allowed_sourcestext[]yesWhere the login may connect from (internal, server: and id, address: and an IP or range); never empty; anywhere is address:0.0.0.0/0 and address:::/0.
max_connectionsintegernoPer-login cap on open connections, at least 1; NULL means no cap (API field maxConnections).
accesstextyesRouting: read-write sends the login to the primary, read-only to read replicas or the primary when there are none (API field connectionRole).
privilegestext[]yesWhat the login may do in each database it can use: owner, read-write, read-only or admin; empty for the root and replication logins.
is_all_databasesbooleanyesTrue for a reader of every database on the cluster, current and future; false means only the databases in scope.
is_toolbooleanyesTrue for a database-tool login: the daemon sends all of its traffic to the primary and adds no read/write split rules (API field tool).
is_straight_throughbooleannoPostgreSQL only: true connects the login straight through the front door; NULL means never chosen, so the default applies (API field straightThrough).

marker

Join edge applying one tag to exactly one taggable entity; org is derived through tag, and setEntityTags replaces an entity's whole set.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
tag_iduuidyesParent tag row (on delete cascade).
server_iduuidnoTagged server when the parent is a server; exactly one of the seven parent columns is non-NULL (CHECK), unique per tag, cascades on delete.
workspace_iduuidnoTagged workspace when the parent is a workspace; exactly one of the seven parent columns is non-NULL, unique per tag, cascades on delete.
project_iduuidnoTagged project when the parent is a project; exactly one of the seven parent columns is non-NULL, unique per tag, cascades on delete.
environment_iduuidnoTagged environment when the parent is an environment; exactly one of the seven parent columns is non-NULL, unique per tag, cascades on delete.
service_iduuidnoTagged service when the parent is a service; exactly one of the seven parent columns is non-NULL, unique per tag, cascades on delete.
datacenter_iduuidnoTagged datacenter when the parent is a datacenter; exactly one of the seven parent columns is non-NULL, unique per tag, cascades on delete.
storage_iduuidnoTagged storage when the parent is a storage; exactly one of the seven parent columns is non-NULL, unique per tag, cascades on delete.

placement

One system principal on one server, the per-server form of a principal row; written by deploy fan-out, teardown and server removal.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
principal_iduuidyesParent principal row (on delete cascade).
server_iduuidyesParent server row (on delete cascade).
statetextyespending when a deploy that creates the account is queued, present once it succeeded, retiring once a stop that retires it is queued, absent after.
uidintegernoLinux uid the host assigned, reported by the daemon; NULL until then, unique per server when set.
gidintegernoLinux gid the host assigned, reported by the daemon; NULL until then.
hometextyesAccount home on the host, /srv/users/ plus the applied username, copied from the deploy material.
sourcetextyesWhy the account is on this server: compose (an x-turbopanel.principals alias), manual (a project principal), or storage (a storage entry owner).
sync_device_idtextnoDevice id of the account file sync instance on this server, as the daemon reports it; NULL while sync is off.
sync_portintegernoListen port the control plane gave the account file sync instance on this server, 1024 to 65535; unique per server.

principal

A site owner Linux user: the host account that runs sites and owns their tree; written by the principals API and the compose deploy.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoHolds home (under /srv/users), an optional uid/gid mirror and composeAlias.
optionsjsonbnoHost-account settings: optional operator uid/gid override and nameScheme; parsed by parsePrincipalOptions.
organization_iduuidyesHome organization set on every insert, not derived.
project_iduuidnoOptional project scope for compose-declared hosting principals; set to NULL when the project is deleted.
accesstextyesSite owner SSH access: none (no login, keys kept), sftp (file transfer only) or shell (shell plus file transfer).
usernamevarchar(255)yesShort internal account name (letter or underscore first, then letters, digits, underscore, hyphen); server accounts get a shorter API-layer cap.
applied_usernamevarchar(255)yesLogin actually created on the host or engine: username, or username plus an underscore and 11 random chars when the org randomizes names; fixed at create.
passwordtextnoWrite-only credential sealed as a tpsecret envelope, never returned on GET and resealed to tpdaemon for delivery; null when no engine password exists.
removal_requested_attimestamp(3) with time zonenoWhen the delete of its project asked for this unused principal to go; the removal sweep deletes it and its host account once no folder names it.

project

One application or stack described by one compose document, owned by a workspace; user projects come from the API, system projects from the platform hierarchy.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoClient jsonb: the catalog code of a template or managed engine project, plus free caller keys; the project type lives in kind.
optionsjsonbnoJsonb: compose, containerNaming, defaultServerId, composeSource, and deploy defaults drainSeconds, healthTimeoutSeconds, rollbackWindowMinutes.
organization_iduuidyesDenormalized copy of the workspace's organization, resolved on every insert; exists so uniq_project_organization_name can be a real per-organization unique.
workspace_iduuidyesParent workspace row (on delete restrict).
repository_iduuidnoThe single Git repository this project is; NULL when not repository-backed, adopted from the first compose sourceId on save, RESTRICT on delete.
default_server_iduuidnoDefault placement server: an environment with no server_id of its own inherits it; set null when the server is deleted (API field options.defaultServerId).
nametextnoDisplay label, unique per organization after trim and case-fold (partial unique index, 409 project_name_in_use); four system project names are reserved.
slugtextyesShort name taken from the project name, unique per organization and never part of a path; editable until any folder exists under the project, then locked.
kindtextnoWhat the project is: compose (a template too), managed or platform-only system; NULL while a draft that has not chosen yet.
descriptiontextnoOptional free-text description written by the client API; no format CHECK, app-side length cap only.
componenttextnoSystem-component discriminator (hosting-ingress, managed-ingress, managed-ha, turbopanel) written by the platform hierarchy; NULL on every user project.
icontextnoIcon key from the fixed list, or one emoji; NULL means the default. A managed project ignores it, the screens an emoji while emoji icons are off.
template_codetextnoCatalog code of the template the project was created from; NULL when not from a template. The four template columns are set together or all NULL.
template_tracktextnoSoftware release line of the template the project was created from, such as 6.8; NULL when not from a template.
template_versiontextnoPackaging version (major.minor.patch) of the template the project was created from; NULL when not from a template.
template_digesttextnoContent digest (sha256: plus 64 hex digits) of the exact template version the project was created from; NULL when not from a template.

service

One deployable unit (a compose service) within an environment; rows are derived from the compose document by reconcile, managed allocation or daemon reports.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoClient jsonb for non-indexed facts plus the daemon-detected app fact; promoted identity keys are stripped on write and the compose name never lives here.
optionsjsonbnoValidated per-service settings jsonb: instances, build, operations, healthCheck, resources, plus deploy hooks when the organization enables them.
environment_iduuidyesParent environment row (on delete restrict).
namevarchar(255)noUser-facing label (formerly display_name), nullable and not unique; reconcile defaults it to the compose service key.
slugtextnoFolder name under the site owner tree, unique per environment; set at creation, locked once a folder row exists, NULL until set.
descriptiontextnoOptional free-text description written by the client API.
compose_service_namevarchar(255)yesCompose service key, derived only: written by compose reconcile, managed allocation and daemon-report reconcile, never by a client; unique per environment.
is_commonbooleanyesTrue when the folder is in the common scope shared by every environment; chosen at creation and never changed.
is_host_access_allowedbooleanyesWhether the service may use host-level Compose fields such as devices and host networking; needs the organization switch on too; default false.

share

An environment using a common asset, a service or volume shared by a site owner; the asset cannot be deleted while a row names it.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
environment_iduuidyesThe environment that uses the common asset; it may belong to any project of the organization.
service_iduuidnoThe common service being used; exactly one of service_id and storage_id is set.
storage_iduuidnoThe common volume being used; exactly one of service_id and storage_id is set.

tag

Organization-owned tag definition written by the tags routes; names are labels unique per organization after lower-casing and trimming.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
organization_iduuidyesParent organization row (on delete cascade).
nametextyesOperator-chosen label, unique per organization on lower(btrim(name)); no format CHECK in the database.
descriptiontextnoOptional free-text description normalized like a display name; NULL when empty.
colorvarchar(32)noOptional display colour as a #rgb or #rrggbb hex string; NULL when unset.

tenancy

Join edge marking the Linux/system principal a compose service runs as; unique (principal_id, service_id), written by the principal store and compose reconcile.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
principal_iduuidyesSystem principal that stewards the service (runs as, owns the site tree); cascade-deleted with the principal.
service_iduuidyesConsuming compose service; ON DELETE RESTRICT so a service delete must clear its run-as edges first.

variable

One config key/value at exactly one scope (organization, workspace, project, environment, service, hosting or server), resolved narrowest-wins into deploy env.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
organization_iduuidnoOrganization scope parent, the widest inheritance level; exactly one of the seven scope columns is non-null (variable_exactly_one_parent_check).
workspace_iduuidnoWorkspace scope parent, overriding organization values; exactly one of the seven scope columns is non-null, and rows cascade with the parent.
project_iduuidnoProject scope parent, overriding workspace values; exactly one of the seven scope columns is non-null, and rows cascade with the parent.
environment_iduuidnoEnvironment scope parent, overriding project values; exactly one of the seven scope columns is non-null, and rows cascade with the parent.
service_iduuidnoService scope parent, overriding environment values; exactly one of the seven scope columns is non-null, and rows cascade with the parent.
hosting_iduuidnoHosting scope parent, the narrowest level, merged per service at deploy (later hosting wins); exactly one of the seven scope columns is non-null.
server_iduuidnoServer scope parent, resolved per server at deploy and outside the inheritance chain; exactly one of the seven scope columns is non-null.
binding_iduuidnoWhen set the row is system-owned, materialized by a managed-database binding; client PATCH/DELETE return 403 and the row cascades with the binding.
keyvarchar(255)yesEnvironment variable name matching ^[A-Za-z_][A-Za-z0-9_]*$, unique per scope parent via partial unique indexes.
valuetextyesPlaintext for non-secrets; for secrets a sealed tpsecret envelope (data-encryption key) the API never returns and deploy delivers as a file.
descriptiontextnoOptional free-text note written by the client API.
is_secretbooleanyesTrue marks the value sealed and write-only: read back as null, never interpolated into YAML or .env, compiled to a Compose secret file at deploy.
is_literalbooleanyesTrue escapes $ so Docker Compose does not interpolate the value; false leaves a $OTHER reference for Compose to expand (API field isLiteral).
is_for_buildbooleanyesTrue injects the non-secret value into build.args at deploy (API field forBuild); default false.
is_for_runtimebooleanyesTrue injects the non-secret value into the container environment at deploy (API field forRuntime); default true.

visitor

One sign-in for a password-protected site: a name and a bcrypt hash the site web server checks, per site service; never returned by a route.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
service_iduuidyesParent service row (on delete cascade).
nametextyesUser name a visitor types; letters, digits and ._@-, 1 to 64 characters, unique per site.
password_hashtextyesbcrypt hash of the password ($2a$, $2b$ or $2y$, cost 10 to 12) written by the control plane; the password itself is never stored.

workspace

Grouping of projects inside one organization; operator rows are kind='user' and each organization also holds exactly one platform turbopanel workspace.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
organization_iduuidyesParent organization row (on delete cascade).
nametextnoDisplay label under workspace_name_format_check (letters, digits, space, ._-), unique per organization at the API; 'TurboPanel' is reserved from first boot.
kindvarchar(32)yesWorkspace discriminator: user (default, operator-created) or turbopanel (the single machine workspace per organization, provisioned at install).
descriptiontextnoOptional free-text description written by the client API; no format CHECK, app-side length cap only.
Edit on GitHub

Last updated on

On this page