123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="5064" systemVersion="13C1021" 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="publicNickname" optional="YES" attributeType="String" 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"/>
- <relationship name="groupConversations" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Conversation" inverseName="members" inverseEntity="Conversation" syncable="YES"/>
- <relationship name="messages" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Message" inverseName="sender" inverseEntity="Message" syncable="YES"/>
- </entity>
- <entity name="Conversation" representedClassName="Conversation" syncable="YES">
- <attribute name="groupId" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="groupImageSetDate" optional="YES" transient="YES" attributeType="Date" syncable="YES"/>
- <attribute name="groupMyIdentity" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="groupName" optional="YES" attributeType="String" 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" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Contact" inverseName="conversations" inverseEntity="Contact" syncable="YES"/>
- <relationship name="groupImage" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="ImageData" syncable="YES"/>
- <relationship name="lastMessage" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Message" syncable="YES"/>
- <relationship name="members" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Contact" inverseName="groupConversations" inverseEntity="Contact" syncable="YES"/>
- <relationship name="messages" optional="YES" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="Message" inverseName="conversation" inverseEntity="Message" syncable="YES"/>
- </entity>
- <entity name="DeletedGroupInfo" representedClassName="DeletedGroupInfo" syncable="YES">
- <attribute name="groupCreator" attributeType="String" indexed="YES" syncable="YES"/>
- <attribute name="groupId" attributeType="Binary" indexed="YES" syncable="YES"/>
- </entity>
- <entity name="ImageData" representedClassName="ImageData" syncable="YES">
- <attribute name="data" attributeType="Binary" allowsExternalBinaryDataStorage="YES" syncable="YES"/>
- <attribute name="height" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
- <attribute name="width" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
- </entity>
- <entity name="ImageMessage" representedClassName="ImageMessage" parentEntity="Message" syncable="YES">
- <attribute name="encryptionKey" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="imageBlobId" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="imageNonce" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="imageSize" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
- <attribute name="progress" optional="YES" transient="YES" attributeType="Float" syncable="YES"/>
- <relationship name="image" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="ImageData" syncable="YES"/>
- <relationship name="thumbnail" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="ImageData" syncable="YES"/>
- </entity>
- <entity name="LocationMessage" representedClassName="LocationMessage" parentEntity="Message" syncable="YES">
- <attribute name="accuracy" optional="YES" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
- <attribute name="latitude" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
- <attribute name="longitude" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
- <attribute name="poiName" optional="YES" attributeType="String" syncable="YES"/>
- <attribute name="reverseGeocodingResult" optional="YES" attributeType="String" syncable="YES"/>
- </entity>
- <entity name="Message" representedClassName="BaseMessage" isAbstract="YES" 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" indexed="YES" syncable="YES"/>
- <attribute name="read" attributeType="Boolean" indexed="YES" syncable="YES"/>
- <attribute name="readDate" optional="YES" attributeType="Date" syncable="YES"/>
- <attribute name="sendFailed" optional="YES" attributeType="Boolean" syncable="YES"/>
- <attribute name="sent" attributeType="Boolean" 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"/>
- <relationship name="sender" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Contact" inverseName="messages" inverseEntity="Contact" syncable="YES"/>
- </entity>
- <entity name="SystemMessage" representedClassName="SystemMessage" parentEntity="Message" syncable="YES">
- <attribute name="arg" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="type" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
- </entity>
- <entity name="TextMessage" representedClassName="TextMessage" parentEntity="Message" syncable="YES">
- <attribute name="text" attributeType="String" syncable="YES"/>
- </entity>
- <entity name="VideoData" representedClassName="VideoData" syncable="YES">
- <attribute name="data" attributeType="Binary" allowsExternalBinaryDataStorage="YES" syncable="YES"/>
- </entity>
- <entity name="VideoMessage" representedClassName="VideoMessage" parentEntity="Message" syncable="YES">
- <attribute name="duration" attributeType="Float" defaultValueString="0.0" syncable="YES"/>
- <attribute name="encryptionKey" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="progress" optional="YES" transient="YES" attributeType="Float" syncable="YES"/>
- <attribute name="videoBlobId" optional="YES" attributeType="Binary" syncable="YES"/>
- <attribute name="videoSize" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
- <relationship name="thumbnail" minCount="1" maxCount="1" deletionRule="Cascade" destinationEntity="ImageData" syncable="YES"/>
- <relationship name="video" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="VideoData" syncable="YES"/>
- </entity>
- <elements>
- <element name="Contact" positionX="0" positionY="0" width="128" height="270"/>
- <element name="Conversation" positionX="0" positionY="0" width="128" height="225"/>
- <element name="DeletedGroupInfo" positionX="9" positionY="117" width="128" height="73"/>
- <element name="ImageData" positionX="0" positionY="0" width="128" height="90"/>
- <element name="ImageMessage" positionX="0" positionY="0" width="128" height="150"/>
- <element name="LocationMessage" positionX="0" positionY="0" width="128" height="120"/>
- <element name="Message" positionX="0" positionY="0" width="128" height="240"/>
- <element name="SystemMessage" positionX="0" positionY="0" width="128" height="75"/>
- <element name="TextMessage" positionX="0" positionY="0" width="128" height="60"/>
- <element name="VideoData" positionX="0" positionY="0" width="128" height="60"/>
- <element name="VideoMessage" positionX="0" positionY="0" width="128" height="150"/>
- </elements>
- </model>
|