JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
API Documentation Admin Webapp
API Documentation
MEDPULSE DATABASE [DRAFT]
More
Share
Explore
MEDPULSE DATABASE [DRAFT]
ASSIGNE MODEL
{
id: {
type
: DataTypes
.
STRING
,
primaryKey:
true
,
allowNull:
false
}
,
name: {
type
: DataTypes
.
STRING
}
,
}
// Foreign Keys
AddressModal
.
belongsTo
(
ContactModal
,
{ foreignKey:
'contactId'
,
as
:
'contact'
}
)
;
AddressModal
.
belongsTo
(
VisitModel
,
{ foreignKey:
'contactId'
,
as
:
'contact'
}
)
;
AddressModal
.
belongsTo
(
ExpenseModel
,
{ foreignKey:
'contactId'
,
as
:
'contact'
}
)
;
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.