contents 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10174" systemVersion="15F34" minimumToolsVersion="Automatic">
  3. <entity name="AddrBook" representedClassName="AddrBook" syncable="YES">
  4. <attribute name="addrBookID" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  5. <attribute name="appState" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  6. <attribute name="avatar" optional="YES" attributeType="String" syncable="YES"/>
  7. <attribute name="branchId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  8. <attribute name="cellTelephone" optional="YES" attributeType="String" syncable="YES"/>
  9. <attribute name="createTime" optional="YES" attributeType="Date" indexed="YES" syncable="YES"/>
  10. <attribute name="defaultLoginName" optional="YES" attributeType="String" syncable="YES"/>
  11. <attribute name="department" optional="YES" attributeType="String" syncable="YES"/>
  12. <attribute name="disPlayName" optional="YES" attributeType="String" syncable="YES"/>
  13. <attribute name="duty" optional="YES" attributeType="String" syncable="YES"/>
  14. <attribute name="email" optional="YES" attributeType="String" syncable="YES"/>
  15. <attribute name="gender" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  16. <attribute name="groupID" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  17. <attribute name="isdeleted" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  18. <attribute name="isFriend" optional="YES" attributeType="Boolean" syncable="YES"/>
  19. <attribute name="isPersonal" attributeType="Boolean" defaultValueString="NO" syncable="YES"/>
  20. <attribute name="loginName" optional="YES" attributeType="String" syncable="YES"/>
  21. <attribute name="loginState" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  22. <attribute name="mobile" optional="YES" attributeType="String" syncable="YES"/>
  23. <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
  24. <attribute name="postion" optional="YES" attributeType="String" syncable="YES"/>
  25. <attribute name="remark" optional="YES" attributeType="String" syncable="YES"/>
  26. <attribute name="secret" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  27. <attribute name="serverID" optional="YES" attributeType="String" syncable="YES"/>
  28. <attribute name="signature" optional="YES" attributeType="String" syncable="YES"/>
  29. <attribute name="state" optional="YES" attributeType="Integer 16" syncable="YES"/>
  30. <attribute name="telephone" optional="YES" attributeType="String" syncable="YES"/>
  31. <attribute name="unit" optional="YES" attributeType="String" syncable="YES"/>
  32. <relationship name="belongTo" optional="YES" maxCount="1" deletionRule="No Action" destinationEntity="AddrBookGroup" inverseName="addrBooks" inverseEntity="AddrBookGroup" syncable="YES"/>
  33. <relationship name="branch" optional="YES" maxCount="1" deletionRule="No Action" destinationEntity="Branch" inverseName="members" inverseEntity="Branch" syncable="YES"/>
  34. </entity>
  35. <entity name="AddrBookGroup" representedClassName="AddrBookGroup" syncable="YES">
  36. <attribute name="groupID" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  37. <attribute name="groupName" optional="YES" attributeType="String" syncable="YES"/>
  38. <attribute name="loginName" optional="YES" attributeType="String" syncable="YES"/>
  39. <attribute name="parentId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  40. <attribute name="state" optional="YES" attributeType="Integer 16" syncable="YES"/>
  41. <relationship name="addrBooks" optional="YES" toMany="YES" deletionRule="No Action" ordered="YES" destinationEntity="AddrBook" inverseName="belongTo" inverseEntity="AddrBook" syncable="YES"/>
  42. </entity>
  43. <entity name="Branch" representedClassName="Branch" syncable="YES">
  44. <attribute name="branchID" optional="YES" attributeType="Integer 64" defaultValueString="0" indexed="YES" syncable="YES"/>
  45. <attribute name="haveDownload" optional="YES" attributeType="Boolean" syncable="YES"/>
  46. <attribute name="isSecrecy" optional="YES" attributeType="Boolean" syncable="YES"/>
  47. <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
  48. <attribute name="parentID" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  49. <attribute name="serverId" optional="YES" attributeType="String" syncable="YES"/>
  50. <relationship name="members" optional="YES" toMany="YES" deletionRule="No Action" ordered="YES" destinationEntity="AddrBook" inverseName="branch" inverseEntity="AddrBook" syncable="YES"/>
  51. <relationship name="parentBranch" optional="YES" maxCount="1" deletionRule="No Action" destinationEntity="Branch" inverseName="subBranch" inverseEntity="Branch" syncable="YES"/>
  52. <relationship name="subBranch" optional="YES" toMany="YES" deletionRule="No Action" ordered="YES" destinationEntity="Branch" inverseName="parentBranch" inverseEntity="Branch" syncable="YES"/>
  53. </entity>
  54. <entity name="BusinessCard" representedClassName="BusinessCard" syncable="YES">
  55. <attribute name="avatar" optional="YES" attributeType="String" syncable="YES"/>
  56. <attribute name="cardId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  57. <attribute name="displayName" optional="YES" attributeType="String" syncable="YES"/>
  58. <attribute name="email" optional="YES" attributeType="String" syncable="YES"/>
  59. <attribute name="groupId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  60. <attribute name="loginName" optional="YES" attributeType="String" syncable="YES"/>
  61. <attribute name="mobile" optional="YES" attributeType="String" syncable="YES"/>
  62. <attribute name="nickname" optional="YES" attributeType="String" syncable="YES"/>
  63. <attribute name="position" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  64. <attribute name="remark" optional="YES" attributeType="String" syncable="YES"/>
  65. <attribute name="tel" optional="YES" attributeType="String" syncable="YES"/>
  66. <relationship name="group" optional="YES" maxCount="1" deletionRule="No Action" destinationEntity="BusinessCardGroup" syncable="YES"/>
  67. </entity>
  68. <entity name="BusinessCardGroup" representedClassName="BusinessCardGroup" syncable="YES">
  69. <attribute name="groupId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  70. <attribute name="groupName" optional="YES" attributeType="String" syncable="YES"/>
  71. <attribute name="loginName" optional="YES" attributeType="String" syncable="YES"/>
  72. <attribute name="parentId" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  73. <attribute name="state" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  74. <relationship name="card" optional="YES" maxCount="1" deletionRule="No Action" destinationEntity="BusinessCard" syncable="YES"/>
  75. </entity>
  76. <entity name="MessageEntity" representedClassName="MessageEntity" syncable="YES">
  77. <attribute name="localPath" optional="YES" attributeType="String" syncable="YES"/>
  78. <attribute name="msgContent" optional="YES" attributeType="String" syncable="YES"/>
  79. <attribute name="msgContentType" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
  80. <attribute name="msgId" optional="YES" attributeType="String" syncable="YES"/>
  81. <attribute name="msgState" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
  82. <attribute name="msgTime" optional="YES" attributeType="Date" syncable="YES"/>
  83. <attribute name="msgType" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
  84. <attribute name="receiverId" optional="YES" attributeType="String" syncable="YES"/>
  85. <attribute name="senderId" optional="YES" attributeType="String" syncable="YES"/>
  86. <attribute name="sessionId" optional="YES" attributeType="String" syncable="YES"/>
  87. <attribute name="voiceLength" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
  88. <attribute name="voicePlayed" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
  89. </entity>
  90. <entity name="RecentEntity" representedClassName="RecentEntity" syncable="YES">
  91. <attribute name="avatar" optional="YES" attributeType="String" syncable="YES"/>
  92. <attribute name="lastMsg" optional="YES" attributeType="String" syncable="YES"/>
  93. <attribute name="lastTime" optional="YES" attributeType="Date" indexed="YES" syncable="YES"/>
  94. <attribute name="manualSortTime" optional="YES" attributeType="Date" syncable="YES"/>
  95. <attribute name="recentId" optional="YES" attributeType="String" syncable="YES"/>
  96. <attribute name="title" optional="YES" attributeType="String" syncable="YES"/>
  97. <attribute name="type" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
  98. <attribute name="unreadCount" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
  99. </entity>
  100. <elements>
  101. <element name="AddrBook" positionX="0" positionY="0" width="128" height="495"/>
  102. <element name="AddrBookGroup" positionX="0" positionY="0" width="128" height="135"/>
  103. <element name="Branch" positionX="0" positionY="0" width="128" height="180"/>
  104. <element name="BusinessCard" positionX="18" positionY="162" width="128" height="223"/>
  105. <element name="BusinessCardGroup" positionX="9" positionY="153" width="128" height="135"/>
  106. <element name="MessageEntity" positionX="0" positionY="0" width="128" height="225"/>
  107. <element name="RecentEntity" positionX="0" positionY="0" width="128" height="165"/>
  108. </elements>
  109. </model>