contents 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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="ImageMessage" representedClassName="ImageMessage" parentEntity="Message" syncable="YES">
  26. <attribute name="height" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  27. <attribute name="image" optional="YES" attributeType="Binary" allowsExternalBinaryDataStorage="YES" syncable="YES"/>
  28. <attribute name="sendProgress" optional="YES" transient="YES" attributeType="Float" defaultValueString="0" syncable="YES"/>
  29. <attribute name="thumbnail" optional="YES" attributeType="Binary" syncable="YES"/>
  30. <attribute name="thumbnailHeight" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  31. <attribute name="thumbnailWidth" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  32. <attribute name="width" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  33. </entity>
  34. <entity name="Message" representedClassName="Message" isAbstract="YES" syncable="YES">
  35. <attribute name="date" attributeType="Date" indexed="YES" syncable="YES"/>
  36. <attribute name="delivered" attributeType="Boolean" syncable="YES"/>
  37. <attribute name="deliveryDate" optional="YES" attributeType="Date" syncable="YES"/>
  38. <attribute name="id" attributeType="Binary" indexed="YES" syncable="YES"/>
  39. <attribute name="isOwn" attributeType="Boolean" syncable="YES"/>
  40. <attribute name="read" attributeType="Boolean" syncable="YES"/>
  41. <attribute name="readDate" optional="YES" attributeType="Date" syncable="YES"/>
  42. <attribute name="sent" attributeType="Boolean" syncable="YES"/>
  43. <attribute name="userack" attributeType="Boolean" syncable="YES"/>
  44. <attribute name="userackDate" optional="YES" attributeType="Date" syncable="YES"/>
  45. <relationship name="conversation" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Conversation" inverseName="messages" inverseEntity="Conversation" syncable="YES"/>
  46. </entity>
  47. <entity name="TextMessage" representedClassName="TextMessage" parentEntity="Message" syncable="YES">
  48. <attribute name="text" attributeType="String" syncable="YES"/>
  49. </entity>
  50. <elements>
  51. <element name="Contact" positionX="223" positionY="234" width="128" height="225"/>
  52. <element name="Conversation" positionX="-18" positionY="234" width="128" height="135"/>
  53. <element name="ImageMessage" positionX="-207" positionY="480" width="128" height="150"/>
  54. <element name="Message" positionX="-281" positionY="207" width="128" height="210"/>
  55. <element name="TextMessage" positionX="-378" positionY="480" width="128" height="60"/>
  56. </elements>
  57. </model>