contents 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1811" systemVersion="12C60" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
  3. <entity name="Contact" representedClassName="Contact" syncable="YES">
  4. <attribute name="abRecordId" optional="YES" attributeType="Integer 32" indexed="YES" syncable="YES"/>
  5. <attribute name="firstName" optional="YES" attributeType="String" syncable="YES"/>
  6. <attribute name="identity" attributeType="String" indexed="YES" syncable="YES"/>
  7. <attribute name="imageData" optional="YES" attributeType="Binary" syncable="YES"/>
  8. <attribute name="lastName" optional="YES" attributeType="String" syncable="YES"/>
  9. <attribute name="publicKey" attributeType="Binary" syncable="YES"/>
  10. <attribute name="sortIndex" optional="YES" attributeType="Integer 32" defaultValueString="0" indexed="YES" syncable="YES"/>
  11. <attribute name="sortInitial" optional="YES" attributeType="String" syncable="YES"/>
  12. <attribute name="verificationLevel" attributeType="Integer 16" syncable="YES"/>
  13. <attribute name="verifiedEmail" optional="YES" attributeType="String" syncable="YES"/>
  14. <attribute name="verifiedMobileNo" optional="YES" attributeType="String" syncable="YES"/>
  15. <relationship name="conversations" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Conversation" inverseName="contact" inverseEntity="Conversation" syncable="YES"/>
  16. </entity>
  17. <entity name="Conversation" representedClassName="Conversation" syncable="YES">
  18. <attribute name="lastTypingStart" optional="YES" transient="YES" attributeType="Date" syncable="YES"/>
  19. <attribute name="typing" transient="YES" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
  20. <attribute name="unreadMessageCount" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
  21. <relationship name="contact" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Contact" inverseName="conversations" inverseEntity="Contact" syncable="YES"/>
  22. <relationship name="lastMessage" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Message" syncable="YES"/>
  23. <relationship name="messages" optional="YES" toMany="YES" deletionRule="Cascade" ordered="YES" destinationEntity="Message" inverseName="conversation" inverseEntity="Message" syncable="YES"/>
  24. </entity>
  25. <entity name="Message" representedClassName="Message" syncable="YES">
  26. <attribute name="date" attributeType="Date" indexed="YES" syncable="YES"/>
  27. <attribute name="delivered" attributeType="Boolean" syncable="YES"/>
  28. <attribute name="deliveryDate" optional="YES" attributeType="Date" syncable="YES"/>
  29. <attribute name="id" attributeType="Binary" indexed="YES" syncable="YES"/>
  30. <attribute name="isOwn" attributeType="Boolean" syncable="YES"/>
  31. <attribute name="read" attributeType="Boolean" syncable="YES"/>
  32. <attribute name="readDate" optional="YES" attributeType="Date" syncable="YES"/>
  33. <attribute name="sent" attributeType="Boolean" syncable="YES"/>
  34. <attribute name="text" optional="YES" attributeType="String" syncable="YES"/>
  35. <attribute name="userack" attributeType="Boolean" syncable="YES"/>
  36. <attribute name="userackDate" optional="YES" attributeType="Date" syncable="YES"/>
  37. <relationship name="conversation" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Conversation" inverseName="messages" inverseEntity="Conversation" syncable="YES"/>
  38. </entity>
  39. <elements>
  40. <element name="Contact" positionX="223" positionY="234" width="128" height="225"/>
  41. <element name="Conversation" positionX="-18" positionY="45" width="128" height="135"/>
  42. <element name="Message" positionX="-281" positionY="207" width="128" height="225"/>
  43. </elements>
  44. </model>