Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Executing (default): SELECT `Location`.`id`, `Location`.*, COUNT(`sensors`.`id`) AS `sensorCount`, `Sensors`.`id` AS `Sensors.id`, `Sensors`.`name` AS `Sensors.name`, `Sensors`.`type` AS `Sensors.type`, `Sensors`.`location` AS `Sensors.location`, `Sensors`.`createdAt` AS `Sensors.createdAt`, `Sensors`.`updatedAt` AS `Sensors.updatedAt` FROM `Locations` AS `Location` LEFT OUTER JOIN `Sensors` AS `Sensors` ON `Location`.`id` = `Sensors`.`location`;
- [ { dataValues: { sensorCount: 2, Sensors: [Object] },
- _previousDataValues: { sensorCount: 2, Sensors: [Object] },
- _changed: {},
- '$modelOptions':
- { timestamps: true,
- instanceMethods: {},
- classMethods: [Object],
- validate: {},
- freezeTableName: false,
- underscored: false,
- underscoredAll: false,
- paranoid: false,
- rejectOnEmpty: false,
- whereCollection: null,
- schema: null,
- schemaDelimiter: '',
- defaultScope: {},
- scopes: [],
- hooks: {},
- indexes: [],
- name: [Object],
- omitNul: false,
- sequelize: [Object],
- uniqueKeys: {},
- hasPrimaryKeys: true },
- '$options':
- { isNewRecord: false,
- '$schema': null,
- '$schemaDelimiter': '',
- include: [Object],
- includeNames: [Object],
- includeMap: [Object],
- includeValidated: true,
- attributes: [Object],
- raw: true },
- hasPrimaryKeys: true,
- __eagerlyLoadedAssociations: [],
- isNewRecord: false,
- Sensors: [ [Object] ] } ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement