Org Database Pool API: schemas

The request and response bodies of the operations in this API.

DbDriverKind

Type: one of "postgres", "mongo", "weaviate"

DbPoolDto

PropertyTypeRequiredDescription
adminUserstringyesCluster administration username. The credential itself is never returned.
createdAtstringyesWhen the cluster was registered, ISO-8601.
driverKindDbDriverKindyes
hoststringyes
idstringyesPool id.
portnumberyes
regionstring or nullyesOperator-declared region, or null if none was stated. Always PRESENT — null is the value, not an absence.
slugstringyesStable operator-facing name, unique across the deployment.
statusDbPoolStatusyesLifecycle state of the cluster. draining keeps existing databases working while refusing to place NEW ones on it.
updatedAtstringyesWhen the row last changed, ISO-8601.

DbPoolDtoDataEnvelope

PropertyTypeRequiredDescription
dataDbPoolDtoyes

DbPoolStatus

Lifecycle state of the cluster. draining keeps existing databases working while refusing to place NEW ones on it.

Type: one of "active", "draining", "decommissioned"

ExplorerColumnDto

PropertyTypeRequiredDescription
foreignKeyTargetstringnoForeign-key target in string form <schema>.<table>.<column>, when the column references one.
isPrimaryKeybooleannoTrue when the column is part of the primary key.
namestringyesColumn name.
nullablebooleanyesWhether the column accepts NULL.
typeNamestringyesPostgreSQL type name (e.g. text, int4).
typeOidnumberyesPostgreSQL type OID.

ExplorerColumnsResponseDto

PropertyTypeRequiredDescription
columnsarray of ExplorerColumnDtoyes
schemastringyesSchema the table belongs to.
tablestringyesTable or view the columns belong to.

ExplorerColumnsResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataExplorerColumnsResponseDtoyes

ExplorerMutateDto

PropertyTypeRequiredDescription
paramsarray of anynoPositional parameter bindings ($1, $2, …) — see ExplorerQueryDto.
schemastringnoOverride schema. Defaults to the org database's canonical schemaName.
sqlstringyesSingle INSERT/UPDATE/DELETE statement. RETURNING is allowed.

ExplorerQueryDto

PropertyTypeRequiredDescription
paramsarray of anynoPositional parameter bindings ($1, $2, …). Values are passed through to pg without string interpolation — driver-side parameterization is the only allowed user-data injection path.
schemastringnoOverride schema. When omitted, falls back to the org database's canonical schemaName recorded on OrgDatabase.schemaName.
sqlstringyesSingle SELECT statement. Multi-statement, CTE-with-mutation, DDL and transactional control are rejected at the AST layer.

ExplorerQueryResponseDto

PropertyTypeRequiredDescription
columnsarray of ExplorerColumnDtoyes
durationMsnumberyesServer-side execution time in milliseconds.
rowCountnumberyesNumber of rows returned.
rowsarray of array of anyyesRow values, positionally aligned with columns.
truncatedbooleanyesTrue when the result was cut short by the row limit — the caller is NOT seeing every matching row.

ExplorerQueryResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataExplorerQueryResponseDtoyes

ExplorerRowsResponseDto

PropertyTypeRequiredDescription
columnsarray of ExplorerColumnDtoyes
durationMsnumberyesServer-side execution time in milliseconds.
rowCountnumberyesNumber of rows returned.
rowsarray of array of anyyesRow values, positionally aligned with columns.
schemastringyesSchema the rows came from.
tablestringyesTable or view the rows came from.
truncatedbooleanyesTrue when the result was cut short by the row limit — the caller is NOT seeing every matching row.

ExplorerRowsResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataExplorerRowsResponseDtoyes

ExplorerSchemasResponseDto

PropertyTypeRequiredDescription
schemasarray of stringyesSchemas exposed by the database. H1 ships one-schema-per-database, so this is a singleton today.

ExplorerSchemasResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataExplorerSchemasResponseDtoyes

ExplorerTableDto

PropertyTypeRequiredDescription
kindone of "table", "view"yesRelation kind.
namestringyesRelation name.

ExplorerTablesResponseDto

PropertyTypeRequiredDescription
schemastringyesSchema the relations belong to.
tablesarray of ExplorerTableDtoyes

ExplorerTablesResponseDtoDataEnvelope

PropertyTypeRequiredDescription
dataExplorerTablesResponseDtoyes

MigrationRunDto

PropertyTypeRequiredDescription
createdAtstringyesISO-8601.
databaseIdstringyesThe org database the run applied to.
exitCodenumber or nullyes
finishedAtstring or nullyesISO-8601.
idstringyesMigration run id.
outputstring or nullyesCaptured runner output.
planJsonobject or nullyesThe typed schema-change plan a raw_sql run applied, kept for audit; null for runners that carry no plan.
runnerKindMigrationRunnerKindyes
schemaIdstring or nullyesThe schema inside that database, when the run was scoped to one.
startedAtstring or nullyesISO-8601.
statusMigrationStatusyes
updatedAtstringyesISO-8601.
workflowIdstring or nullyes

MigrationRunDtoDataArrayEnvelope

PropertyTypeRequiredDescription
dataarray of MigrationRunDtoyes

MigrationRunnerKind

Type: one of "prisma", "drizzle", "flyway", "raw_sql"

MigrationStatus

Type: one of "pending", "running", "succeeded", "failed"

OrgDatabaseDto

PropertyTypeRequiredDescription
createdAtstringyes
databaseNamestringyes
idstringyes
lastMigratedAtstring or nullno
orgIdstringyes
poolIdstringyes
purposeOrgDatabasePurposeyes
rolesSchemaRoleNamesDtoyesAuthoritative access-role names the pool created for schemaName. Consumers MUST use these when minting a connection; never re-derive them.
schemaNamestringyes
statusOrgDatabaseStatusyes
updatedAtstringyes

OrgDatabaseDtoDataEnvelope

PropertyTypeRequiredDescription
dataOrgDatabaseDtoyes

OrgDatabasePurpose

Type: one of "biome", "app_dev", "app_prod", "system"

OrgDatabaseStatus

Type: one of "provisioning", "active", "migrating", "failed", "archived"

SchemaRoleNamesDto

PropertyTypeRequiredDescription
roRoleNamestringyesRole name for SchemaRoleKind.ReadOnly (suffix "_ro") — SELECT only on the schema.
rwRoleNamestringyesRole name for SchemaRoleKind.ReadWrite (suffix "_rw") — full DML on the schema.