YZ
Size: a a a
YZ
w
w
YZ
w
{
include: {
model: models.Facultet,
attributes: [
'title',
'description',
'pdfUrl',
],
include: [
{
model: models.Boss,
attributes: [
'name',
'description',
'photo',
],
},
{
model: models.Organizer,
attributes: [
'name',
'description',
],
},
{
model: models.Lab,
attributes: [
'title',
'description',
'pdfUrl',
'videoUrl',
],
include: [
{
model: models.Video,
},
{
model: models.Organizer,
attributes: [
'name',
'description',
],
},
{
model: models.Boss,
attributes: [
'name',
'description',
'photo',
],
},
],
},
],
},
attributes: [
'title',
'description',
'pdfUrl',
],
}YZ
w
YZ
w
w
"facultet_organizer": {
"createdAt": "2019-08-28T11:56:41.454Z",
"updatedAt": "2019-08-28T11:56:41.454Z",
"FacultetId": 340,
"OrganizerId": 19
}YZ
YZ
w
YZ
w
BK
BK
distance: {
type: DataTypes.VIRTUAL,
get: function (longitude, latitude ) {
// const lat = this.getDataValue('lat');
//console.log("LONGITUDE, ", longitude)
return longitude
}BK
A
BK