Skip to content
On this page

Directus Cloud

Everything you need to start building. Provisioned in 90 seconds. Starting at $15/month.

Get Started

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 / DirectusField

Type alias: DirectusField<Schema> ​

DirectusField<Schema>: Object

Type parameters ​

• Schema = any

Type declaration ​

collection ​

collection: string

field ​

field: string

meta ​

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

schema ​

schema: Object

schema.comment ​

comment: string | null

schema.data_type ​

data_type: string

schema.default_value ​

default_value: any | null

schema.foreign_key_column ​

foreign_key_column: string | null

schema.foreign_key_schema ​

foreign_key_schema: string | null

schema.foreign_key_table ​

foreign_key_table: string | null

schema.generation_expression ​

generation_expression: unknown | null

schema.has_auto_increment ​

has_auto_increment: boolean

schema.is_generated ​

is_generated: boolean

schema.is_nullable ​

is_nullable: boolean

schema.is_primary_key ​

is_primary_key: boolean

schema.is_unique ​

is_unique: boolean

schema.max_length ​

max_length: number | null

schema.name ​

name: string

schema.numeric_precision ​

numeric_precision: number | null

schema.numeric_scale ​

numeric_scale: number | null

schema.schema ​

schema: string

schema.table ​

table: string

type ​

type: string

Source ​

schema/field.ts:3