1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1811" systemVersion="12C60" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
- <entity name="Contact" representedClassName="Contact" syncable="YES">
- <attribute name="abRecordId" optional="YES" attributeType="Integer 32" indexed="YES" syncable="YES"/>
- <attribute name="firstName" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="identity" attributeType="String" indexed="YES" syncable="YES"/>
- <attribute name="imageData" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="lastName" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="publicKey" attributeType="Binary" syncable="YES"/>
- <attribute name="sortIndex" optional="YES" attributeType="Integer 32" defaultValueString="0" indexed="YES" syncable="YES"/>
- <attribute name="sortInitial" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="verificationLevel" attributeType="Integer 16" syncable="YES"/>
- <attribute name="verifiedEmail" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="verifiedMobileNo" optional="YES" attributeType="String" syncable="YES"/>
- <relationship name="conversations" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Conversation" inverseName="contact" inverseEntity="Conversation" syncable="YES"/>
- </entity>
- <entity name="Conversation" representedClassName="Conversation" syncable="YES">
- <attribute name="lastTypingStart" optional="YES" transient="YES" attributeType="Date" syncable="YES"/>
- <attribute name="typing" transient="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
- <attribute name="unreadMessageCount" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
- <relationship name="contact" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Contact" inverseName="conversations" inverseEntity="Contact" syncable="YES"/>
- <relationship name="lastMessage" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Message" syncable="YES"/>
- <relationship name="messages" optional="YES" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="Message" inverseName="conversation" inverseEntity="Message" syncable="YES"/>
- </entity>
- <entity name="Message" representedClassName="Message" syncable="YES">
- <attribute name="date" attributeType="Date" indexed="YES" syncable="YES"/>
- <attribute name="delivered" attributeType="Boolean" syncable="YES"/>
- <attribute name="deliveryDate" optional="YES" attributeType="Date" syncable="YES"/>
- <attribute name="id" attributeType="Binary" indexed="YES" syncable="YES"/>
- <attribute name="isOwn" attributeType="Boolean" syncable="YES"/>
- <attribute name="read" attributeType="Boolean" syncable="YES"/>
- <attribute name="readDate" optional="YES" attributeType="Date" syncable="YES"/>
- <attribute name="sent" attributeType="Boolean" syncable="YES"/>
- <attribute name="text" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="userack" attributeType="Boolean" syncable="YES"/>
- <attribute name="userackDate" optional="YES" attributeType="Date" syncable="YES"/>
- <relationship name="conversation" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Conversation" inverseName="messages" inverseEntity="Conversation" syncable="YES"/>
- </entity>
- <elements>
- <element name="Contact" positionX="223" positionY="234" width="128" height="225"/>
- <element name="Conversation" positionX="-18" positionY="45" width="128" height="135"/>
- <element name="Message" positionX="-281" positionY="207" width="128" height="225"/>
- </elements>
- </model>
|