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