schema.yml
schema.yml is the structured definition of an entity — identity, keys, imports, features, metrics, and relationships.
What it is
Where it lives
.lynk/domains/<domain>/entities/<entity>/schema.ymlFormat
identity: maindb.public.customers # required — a physical table OR another entity
keys: # required when identity is a physical table; inherited otherwise
- id
features: [...]
metrics: [...]
table_relationships: [...]
entity_relationships: [...]
imports: [...] # only when identity points at another entityField
Required
Type
Page
Examples
Validation
Related
Last updated