prorm API Reference
← Documentation
GitLab
Preparing search index...
index
BelongsToManyOptions
Interface BelongsToManyOptions
interface
BelongsToManyOptions
{
as
?:
string
;
through
:
any
;
foreignKey
?:
string
;
otherKey
?:
string
;
onDelete
?:
"CASCADE"
|
"RESTRICT"
|
"SET NULL"
|
"NO ACTION"
;
onUpdate
?:
"CASCADE"
|
"RESTRICT"
|
"SET NULL"
|
"NO ACTION"
;
hooks
?:
boolean
;
}
Index
Properties
as?
through
foreign
Key?
other
Key?
on
Delete?
on
Update?
hooks?
Properties
Optional
as
as
?:
string
through
through
:
any
Optional
foreign
Key
foreignKey
?:
string
Optional
other
Key
otherKey
?:
string
Optional
on
Delete
onDelete
?:
"CASCADE"
|
"RESTRICT"
|
"SET NULL"
|
"NO ACTION"
Optional
on
Update
onUpdate
?:
"CASCADE"
|
"RESTRICT"
|
"SET NULL"
|
"NO ACTION"
Optional
hooks
hooks
?:
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
as
through
foreign
Key
other
Key
on
Delete
on
Update
hooks
← Documentation
GitLab
prorm API Reference
Loading...