{
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' });