add(new MillisecondTimestamp([ 'event_time' ])); $behaviors->add(new Binary([ 'environment_id', 'endpoint_id', 'host_id', 'service_id', 'downtime_id' ])); } public function createRelations(Relations $relations) { $relations->belongsTo('endpoint', Endpoint::class); $relations->belongsTo('environment', Environment::class); $relations->belongsTo('host', Host::class)->setJoinType('LEFT'); $relations->belongsTo('service', Service::class)->setJoinType('LEFT'); } }