Test

 

Account

description: Represent a user’s identity and privileges on our services.

Attributes

Key Type Class Optional Transient Default Predicates User Info
authState String NSString true false none []  
accessToken String NSString true false none []  
password String NSString true false none []  
userName String NSString true false none []  
scope String NSString true false none []  
type String NSString true false none []  
identifier String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
occupants Cascade To-Many false 0 0 Occupant Account
app Nullify To-One false 0 1 App Account
sites Nullify To-Many false 0 0 Site Account

 


Address

description: This can be populated from Contacts.

Attributes

Key Type Class Optional Transient Default Predicates User Info
state String NSString true false none []  
city String NSString true false none []  
postalCode String NSString true false none []  
street String NSString true false none []  
enableGeofencing Bool NSNumber true false 0 []  
country String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
place Cascade To-One false 0 1 Place Address
site Nullify To-One false 0 1 Site Address

 


App

description: value

com.apple.syncservices.Syncable: NO

Attributes

Key Type Class Optional Transient Default Predicates User Info
dateCreated Date NSDate false false none [] com.apple.syncservices.Syncable: NO

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
account Nullify To-One false 0 1 Account App
tracker Nullify To-One false 0 1 Tracker App
currentReport Nullify To-One false 0 1 Report App
settings Cascade To-One false 0 1 Settings App
reports Cascade To-Many false 0 0 Report App

 


Battery

Attributes

Key Type Class Optional Transient Default Predicates User Info
name String NSString true false none []  
ratedAmpHours Int16 NSNumber true false 0 []  
type String NSString true false none []  
ratedVolts Int16 NSNumber true false 0 []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
system Nullify To-One false 0 1 System Battery

 


BreakerPanel

description: This is what you typically see in your garage. Our clients’ utility rooms may include several Breaker Panels.

Attributes

Key Type Class Optional Transient Default Predicates User Info
name String NSString true false none []  
location String NSString true false none []  
type String NSString true false none []  
identifier String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
circuits Cascade To-Many false 0 0 Circuit BreakerPanel
system Nullify To-One false 0 1 System BreakerPanel
companions Cascade To-Many false 0 0 Companion BreakerPanel

 


Circuit

Attributes

Key Type Class Optional Transient Default Predicates User Info
loadPercentage Float NSNumber true false 0 []  
name String NSString true false none []  
isOn Bool NSNumber true false 1 []  
position Int16 NSNumber true false 0 []  
ratedAmps Int16 NSNumber true false 0 []  
identifier String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
companionForCircuitB Nullify To-One false 0 1 Companion Circuit
companionForCircuitA Nullify To-One false 0 1 Companion Circuit
breakerPanel Nullify To-One false 0 1 BreakerPanel Circuit
loads Cascade To-Many false 0 0 Load Circuit

 


Companion

description: A Racepoint device formerly known as a Smart Breaker or Breaker Monitor.

Attributes

Key Type Class Optional Transient Default Predicates User Info
position Int16 NSNumber true false 0 []  
name String NSString true false none []  
state Int16 NSNumber true false 0 []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
circuitA Nullify To-One false 0 1 Circuit Companion
breakerPanel Nullify To-One false 0 1 BreakerPanel Companion
circuitB Nullify To-One false 0 1 Circuit Companion

 


Day

Attributes

Key Type Class Optional Transient Default Predicates User Info
name String NSString true false none []  
endTime Date NSDate true false none []  
startTime Date NSDate true false none []  
index Int16 NSNumber true false 0 []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
schedule Nullify To-One false 0 1 Schedule Day

 


Generator

Attributes

Key Type Class Optional Transient Default Predicates User Info
ratedWatts Int16 NSNumber true false 0 []  
name String NSString true false none []  
type String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
system Nullify To-One false 0 1 System Generator

 


Load

description: This can be any Load on a Circuit, including appliances and banks of lights.

Attributes

Key Type Class Optional Transient Default Predicates User Info
type String NSString true false none []  
name String NSString true false none []  
location String NSString true false none []  
ratedVoltage Double NSNumber true false 0 []  
make String NSString true false none []  
model String NSString true false none []  
ratedAmps Double NSNumber true false 0 []  
ratedAnnualkWh Double NSNumber true false 0 []  
identifier String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
schedule Cascade To-One false 0 1 Schedule Load
circuit Nullify To-One false 0 1 Circuit Load

 


Occupant

description: Someone who resides at a Site, or a VIP who may visit.

Attributes

Key Type Class Optional Transient Default Predicates User Info
allowsPresenceDetection Bool NSNumber true false 0 []  
hasSpecialNeeds Bool NSNumber true false 0 [] description: Examples include age or disability.
middleName String NSString true false none []  
contactID String NSString true false none []  
nickname String NSString true false none []  
age Int16 NSNumber true false 0 []  
preferredRoomTemp Double NSNumber true false 0 []  
familyName String NSString true false none []  
birthday Date NSDate true false none []  
preferredHumidity Double NSNumber true false 0 []  
isPresent Bool NSNumber true false 1 []  
fullName String NSString true false none []  
givenName String NSString true false none []  
nameSuffix String NSString true false none []  
namePrefix String NSString true false none []  
thisIsMe Bool NSNumber true false 0 []  
budgetConsciousness String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
site Nullify To-One false 0 1 Site Occupant
account Nullify To-One false 0 1 Account Occupant
schedule Nullify To-One false 0 1 Schedule Occupant

 


Place

description: This is specific to MapKit, which allows us to manage a geofence around one or more GPS locations. Places are generally derived from Addresses.

Attributes

Key Type Class Optional Transient Default Predicates User Info
latitude Double NSNumber true false none []  
isGeofenced Bool NSNumber true false 0 []  
fullAddress String NSString true false none []  
name String NSString true false none []  
altitude Double NSNumber true false 0 []  
longitude Double NSNumber true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
address Nullify To-One false 0 1 Address Place

 


PublicMain

Attributes

Key Type Class Optional Transient Default Predicates User Info
type String NSString true false none []  
name String NSString true false none []  
ratedAmps Int16 NSNumber true false 0 []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
system Nullify To-One false 0 1 System PublicMain

 


Report

description: Our general container for a dataset that drives a Chart, Graph or Table.

Attributes

Key Type Class Optional Transient Default Predicates User Info
type Int64 NSNumber true false 0 []  
name String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
appForCurrentReport Nullify To-One false 0 1 App Report
appForReports Nullify To-One false 0 1 App Report

 


Schedule

Attributes

Key Type Class Optional Transient Default Predicates User Info
name String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
days Cascade To-Many true 0 0 Day Schedule
load Nullify To-One false 0 1 Load Schedule
occupant Nullify To-One false 0 1 Occupant Schedule

 


Settings

Attributes

Key Type Class Optional Transient Default Predicates User Info
userMode String NSString true false none []  
tempUnits String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
app Nullify To-One false 0 1 App Settings

 


Site

description: An Account can service multiple Sites, and Occupants can move among them.

Attributes

Key Type Class Optional Transient Default Predicates User Info
identifier String NSString true false none []  
name String NSString true false none []  
phoneNumber String NSString true false none []  
contactID String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
currentOccupants Nullify To-Many false 0 0 Occupant Site
systems Cascade To-Many false 0 0 System Site
account Nullify To-One false 0 1 Account Site
address Cascade To-One false 0 1 Address Site

 


SolarPanel

Attributes

Key Type Class Optional Transient Default Predicates User Info
ratedWatts Int16 NSNumber true false 0 []  
name String NSString true false none []  
ratedAmpHours Int16 NSNumber true false 0 []  
type String NSString true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
system Nullify To-One false 0 1 System SolarPanel

 


System

description: A Site can have multiple Systems. A System controls a collection of equipment.

Attributes

Key Type Class Optional Transient Default Predicates User Info
identifier String NSString true false none []  
name String NSString true false none []  
location String NSString true false none []  
hardwareID String NSString true false none []  
type String NSString true false none []  
address URI NSURL true false none []  

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
breakerPanels Cascade To-Many false 0 0 BreakerPanel System
publicMains Cascade To-Many false 0 0 PublicMain System
batteries Cascade To-Many false 0 0 Battery System
generators Cascade To-Many false 0 0 Generator System
solarPanels Cascade To-Many false 0 0 SolarPanel System
site Nullify To-One false 0 1 Site System

 


Tracker

description: This is an internal object that manages Location Services and geofencing for our Presence Detection features.

Attributes

Key Type Class Optional Transient Default Predicates User Info

Relationships

Key Delete Rule Type Ordered Min Max Destination Inverse
app Nullify To-One false 0 1 App Tracker