Files
Patrick McDonagh 909925a334 Initial Commit
2018-05-25 12:56:07 -05:00

96 lines
8.4 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="14133" systemVersion="17E202" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="Address" representedClassName="Address" syncable="YES" codeGenerationType="class">
<attribute name="apartment" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="city" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="country" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="id" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="lat" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="long" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="state" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="street1" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="street2" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="zip" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="zoneid" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<relationship name="parentGateway" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Gateway" inverseName="gatewayAddress" inverseEntity="Gateway" syncable="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="id"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<entity name="Company" representedClassName="Company" syncable="YES" codeGenerationType="class">
<attribute name="addressId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="id" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="tenantId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<relationship name="companyDevices" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Device" inverseName="parentCompany" inverseEntity="Device" syncable="YES"/>
<relationship name="companyGateways" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Gateway" inverseName="parentCompany" inverseEntity="Gateway" syncable="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="id"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<entity name="Device" representedClassName="Device" syncable="YES" codeGenerationType="class">
<attribute name="companyId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="deviceTypeId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="gatewayId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="id" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="macAddress" attributeType="String" syncable="YES"/>
<attribute name="techname" attributeType="String" syncable="YES"/>
<attribute name="tenantId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="vanityName" attributeType="String" syncable="YES"/>
<relationship name="parentCompany" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Company" inverseName="companyDevices" inverseEntity="Company" syncable="YES"/>
<relationship name="parentDeviceType" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="DeviceType" inverseName="devicesWithType" inverseEntity="DeviceType" syncable="YES"/>
<relationship name="parentGateway" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Gateway" inverseName="gatewayDevices" inverseEntity="Gateway" syncable="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="id"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<entity name="DeviceType" representedClassName="DeviceType" syncable="YES" codeGenerationType="class">
<attribute name="companyId" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="id" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="imgUrl" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="note" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="tenantId" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="vanityName" optional="YES" attributeType="String" syncable="YES"/>
<relationship name="devicesWithType" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Device" inverseName="parentDeviceType" inverseEntity="Device" syncable="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="id"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<entity name="Gateway" representedClassName="Gateway" syncable="YES" codeGenerationType="class">
<attribute name="addressId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="companyId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="diaVersion" attributeType="String" syncable="YES"/>
<attribute name="gatewayConfigurationId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="gatewayTypeId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="id" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="macAddress" attributeType="String" syncable="YES"/>
<attribute name="name" attributeType="String" syncable="YES"/>
<attribute name="panId" attributeType="String" syncable="YES"/>
<attribute name="tenantId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="userId" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<relationship name="gatewayAddress" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Address" inverseName="parentGateway" inverseEntity="Address" syncable="YES"/>
<relationship name="gatewayDevices" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Device" inverseName="parentGateway" inverseEntity="Device" syncable="YES"/>
<relationship name="parentCompany" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Company" inverseName="companyGateways" inverseEntity="Company" syncable="YES"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="id"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
<elements>
<element name="Address" positionX="-477" positionY="-3" width="128" height="223"/>
<element name="Gateway" positionX="-254" positionY="-81" width="128" height="253"/>
<element name="Device" positionX="-2" positionY="17" width="128" height="208"/>
<element name="Company" positionX="-261" positionY="350" width="128" height="133"/>
<element name="DeviceType" positionX="-9" positionY="-298" width="128" height="163"/>
</elements>
</model>