Neon · Schema
Neon Branch
A Neon branch is a copy-on-write clone of database data used for development, testing, or preview environments. Branches are created instantly and share storage with their parent until data diverges.
DatabasesServerlessPostgresInfrastructureAuthenticationEdge
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The unique branch identifier |
| project_id | string | The project ID this branch belongs to |
| parent_id | string | The parent branch ID this branch was created from |
| parent_lsn | string | The Postgres Log Sequence Number of the point the branch was created from |
| parent_timestamp | string | The timestamp of the point in time the branch was created from |
| name | string | The human-readable branch name |
| current_state | string | The current state of the branch |
| logical_size | integer | The logical size of the branch data in bytes |
| primary | boolean | Whether this is the primary (default) branch of the project |
| created_at | string | Timestamp when the branch was created |
| updated_at | string | Timestamp when the branch was last updated |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://neon.com/schemas/neon/branch.json",
"title": "Neon Branch",
"description": "A Neon branch is a copy-on-write clone of database data used for development, testing, or preview environments. Branches are created instantly and share storage with their parent until data diverges.",
"type": "object",
"required": ["id", "project_id", "name"],
"properties": {
"id": {
"type": "string",
"description": "The unique branch identifier"
},
"project_id": {
"type": "string",
"description": "The project ID this branch belongs to"
},
"parent_id": {
"type": "string",
"description": "The parent branch ID this branch was created from"
},
"parent_lsn": {
"type": "string",
"description": "The Postgres Log Sequence Number of the point the branch was created from"
},
"parent_timestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp of the point in time the branch was created from"
},
"name": {
"type": "string",
"description": "The human-readable branch name"
},
"current_state": {
"type": "string",
"description": "The current state of the branch",
"enum": ["init", "ready"]
},
"logical_size": {
"type": "integer",
"format": "int64",
"description": "The logical size of the branch data in bytes",
"minimum": 0
},
"primary": {
"type": "boolean",
"description": "Whether this is the primary (default) branch of the project"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the branch was created"
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the branch was last updated"
}
}
}