prorm API Reference
← Documentation
GitLab
Preparing search index...
dialects/dialect
ConstraintDefinition
Interface ConstraintDefinition
An existing constraint as reported by the engine.
interface
ConstraintDefinition
{
name
:
string
;
type
:
"UNIQUE"
|
"PRIMARY KEY"
|
"FOREIGN KEY"
|
"CHECK"
;
fields
?:
string
[]
;
references
?:
{
table
:
string
;
field
:
string
;
onDelete
?:
string
;
onUpdate
?:
string
;
}
;
check
?:
string
;
deferrable
?:
"INITIALLY DEFERRED"
|
"INITIALLY IMMEDIATE"
;
}
Index
Properties
name
type
fields?
references?
check?
deferrable?
Properties
name
name
:
string
type
type
:
"UNIQUE"
|
"PRIMARY KEY"
|
"FOREIGN KEY"
|
"CHECK"
Optional
fields
fields
?:
string
[]
Optional
references
references
?:
{
table
:
string
;
field
:
string
;
onDelete
?:
string
;
onUpdate
?:
string
;
}
Optional
check
check
?:
string
Optional
deferrable
deferrable
?:
"INITIALLY DEFERRED"
|
"INITIALLY IMMEDIATE"
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
name
type
fields
references
check
deferrable
← Documentation
GitLab
prorm API Reference
Loading...
An existing constraint as reported by the engine.