Skip to content
On this page

This is an auto-generated document to support extension builders understand the internal packages they can utilize. To find our written guides, tutorials, and API/SDK reference, check out our main docs .

Directus / @directus/sdk / schema / DirectusRelation

Type alias: DirectusRelation<Schema>

DirectusRelation<Schema>: Object

Type parameters

Schema extends object

Type declaration

collection

collection: string

field

field: string

meta

meta: MergeCoreCollection<Schema, "directus_relations", Object>

related_collection: string

schema

schema: Object

schema.column

column: string

schema.constraint_name

constraint_name: string

schema.foreign_key_column

foreign_key_column: string

schema.foreign_key_schema

foreign_key_schema: string

schema.foreign_key_table

foreign_key_table: string

schema.on_delete

on_delete: string

schema.on_update

on_update: string

schema.table

table: string

Source

schema/relation.ts:3