Files
directus/packages/spec/specs/components/relation.yaml
2020-09-14 20:01:01 +02:00

37 lines
1.0 KiB
YAML

type: object
properties:
many_collection:
description: Collection that has the field that holds the foreign key.
example: directus_activity
type: string
many_field:
description: Foreign key. Field that holds the primary key of the related collection.
example: action_by
type: string
many_primary:
description: The primary field.
example: id
type: string
one_collection:
description: Collection on the _one_ side of the relationship.
example: directus_users
type: string
one_field:
description: Alias column that serves as the _one_ side of the relationship.
example: null
type: string
nullable: true
one_primary:
description: The primary field.
example: id
type: string
id:
description: Unique identifier for the relation.
example: 1
type: integer
junction_field:
description: Field on the junction table that holds the primary key of the related
collection.
example: null
type: string
nullable: true