A Twenty app’s data layer is the data your app adds to a workspace — the new record types it declares, the columns it adds to existing objects, and how those records connect to each other.Documentation Index
Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
Use this file to discover all available pages before exploring further.
In this section
Objects
defineObject — declare new record types with their own fields.Extending Objects
defineField — add fields to standard or other apps’ objects.Relations
Bidirectional
MANY_TO_ONE / ONE_TO_MANY connections between objects.Entities at a glance
| Entity | Purpose | Defined with |
|---|---|---|
| Object | A new custom record type (e.g. PostCard, Invoice) with its own fields | defineObject() |
| Field | A column on an object. Standalone fields can extend objects you didn’t create (e.g. add loyaltyTier to Company) | defineField() |
| Relation | A bidirectional link between two objects — both sides declared as fields | defineField() with FieldType.RELATION |
src/objects/ and src/fields/. Stable universalIdentifier UUIDs tie everything together across deploys.