prorm API Reference
← Documentation
GitLab
Preparing search index...
index
AssociationDefinition
Interface AssociationDefinition
interface
AssociationDefinition
{
type
:
"belongsTo"
|
"hasOne"
|
"hasMany"
|
"belongsToMany"
;
target
:
string
;
foreignKey
?:
string
;
sourceKey
?:
string
;
through
?:
string
;
as
?:
string
;
}
Index
Properties
type
target
foreign
Key?
source
Key?
through?
as?
Properties
type
type
:
"belongsTo"
|
"hasOne"
|
"hasMany"
|
"belongsToMany"
target
target
:
string
Optional
foreign
Key
foreignKey
?:
string
Optional
source
Key
sourceKey
?:
string
Optional
through
through
?:
string
Optional
as
as
?:
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
type
target
foreign
Key
source
Key
through
as
← Documentation
GitLab
prorm API Reference
Loading...