prorm API Reference
← Documentation
GitLab
Preparing search index...
index
TableColumnDefinition
Interface TableColumnDefinition
Column definition for createTable/alterTable
interface
TableColumnDefinition
{
type
:
DataType
;
allowNull
?:
boolean
;
defaultValue
?:
any
;
primaryKey
?:
boolean
;
autoIncrement
?:
boolean
;
unique
?:
string
|
boolean
;
references
?:
{
model
:
string
;
key
:
string
;
deferrable
?:
string
;
onDelete
?:
string
;
onUpdate
?:
string
;
}
;
comment
?:
string
;
validate
?:
Record
<
string
,
any
>
;
}
Index
Properties
type
allow
Null?
default
Value?
primary
Key?
auto
Increment?
unique?
references?
comment?
validate?
Properties
type
type
:
DataType
Optional
allow
Null
allowNull
?:
boolean
Optional
default
Value
defaultValue
?:
any
Optional
primary
Key
primaryKey
?:
boolean
Optional
auto
Increment
autoIncrement
?:
boolean
Optional
unique
unique
?:
string
|
boolean
Optional
references
references
?:
{
model
:
string
;
key
:
string
;
deferrable
?:
string
;
onDelete
?:
string
;
onUpdate
?:
string
;
}
Optional
comment
comment
?:
string
Optional
validate
validate
?:
Record
<
string
,
any
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
type
allow
Null
default
Value
primary
Key
auto
Increment
unique
references
comment
validate
← Documentation
GitLab
prorm API Reference
Loading...
Column definition for createTable/alterTable