locations_v1

This view contains the location master data.

Here you will find the names and references of all the active locations, including the hierarchy. Note that when a location is deleted/archived, it will disappear from this view. Otherwise said, this view contains all the locations that are currently active in your portfolio.

The view contains ALL active locations, regardless if they are monitored by sensors or not.

In most cases, this view will be combined with other views (usually with an INNER JOIN).

 

Data structure

ColumnMeaningComment
location_namename of locationcannot be NULL
location_referencereference of locationcannot be NULL
location_classclass of locationbuilt in enumeration:
AREA
SITE
BUILDING
FLOOR
ROOM
WORKPLACE
PARKING
area_namename of area to which a location belongscan be NULL if the location does not belong to an Area
area_referencereference of area to which a location belongs can be NULL if the location does not belong to an Area
site_namename of site to which a location belongscan be NULL if the location does not belong to a Site
site_referencereference of site to which a location belongscan be NULL if the location does not belong to a Site
building_namename of building to which a location belongscan be NULL if the location does not belong to a Building
building_referencereference of building to which a location belongscan be NULL if the location does not belong to a Building
floor_namename of floor to which a location belongscan be NULL if the location does not belong to a Floor
floor_referencereference of floor to which a location belongscan be NULL if the location does not belong to a Floor
room_namename of room to which a location belongsis NULL when location class is not WORKPLACE or PARKING
room_referencereference of room to which a location belongsis NULL when location class is not WORKPLACE or PARKING
workplace_namename of workplaceis NULL when location class is not WORKPLACE
workplace_referencereference of workplaceis NULL when location class is not WORKPLACE
parking_place_namename of parking placeis NULL when location class is not PARKING
parking_place_referencereference of parking placeis NULL when location class is not PARKING
room_area_sqmnet area of a room (in square meters)
room_categorycategory of a roomas defined in Workplace
space_classclass of space, as defined in Studiobuilt in enumeration:
WORK
MEETING
FOCUS
PARKING
SANITARY
OTHER
is_reservableflag if the location is reservable 
location_idunique identifier of the locationprimary key
location_parent_idunique identifier of the parent locationthis column represents the hierarchy of all locations
area_idunique identifier of an area foreign key
site_idunique identifier of a site foreign key
building_idunique identifier of a building foreign key
floor_idunique identifier of a floor  foreign key
room_idunique identifier of a room foreign key
workplace_idunique identifier of a workplace foreign key
parking_place_idunique identifier of a parking place foreign key