contents 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="20086" systemVersion="21F79" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
  3. <entity name="Attachment" representedClassName="Attachment" syncable="YES" codeGenerationType="class">
  4. <attribute name="contentUrl" optional="YES" attributeType="String"/>
  5. <attribute name="expires" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
  6. <attribute name="name" attributeType="String"/>
  7. <attribute name="size" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
  8. <attribute name="type" optional="YES" attributeType="String"/>
  9. <attribute name="url" attributeType="String"/>
  10. <relationship name="notification" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="Notification" inverseName="attachment" inverseEntity="Notification"/>
  11. </entity>
  12. <entity name="Notification" representedClassName="Notification" syncable="YES" codeGenerationType="class">
  13. <attribute name="actions" optional="YES" attributeType="String"/>
  14. <attribute name="click" optional="YES" attributeType="String"/>
  15. <attribute name="id" attributeType="String"/>
  16. <attribute name="message" attributeType="String"/>
  17. <attribute name="priority" optional="YES" attributeType="Integer 16" minValueString="1" maxValueString="5" defaultValueString="3" usesScalarValueType="YES"/>
  18. <attribute name="tags" optional="YES" attributeType="String"/>
  19. <attribute name="time" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
  20. <attribute name="title" optional="YES" attributeType="String"/>
  21. <relationship name="attachment" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Attachment" inverseName="notification" inverseEntity="Attachment"/>
  22. <relationship name="subscription" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Subscription" inverseName="notifications" inverseEntity="Subscription"/>
  23. <uniquenessConstraints>
  24. <uniquenessConstraint>
  25. <constraint value="id"/>
  26. </uniquenessConstraint>
  27. </uniquenessConstraints>
  28. </entity>
  29. <entity name="Preference" representedClassName="Preference" syncable="YES" codeGenerationType="class">
  30. <attribute name="key" optional="YES" attributeType="String"/>
  31. <attribute name="value" optional="YES" attributeType="String"/>
  32. </entity>
  33. <entity name="Subscription" representedClassName="Subscription" syncable="YES" codeGenerationType="class">
  34. <attribute name="baseUrl" attributeType="String"/>
  35. <attribute name="lastNotificationId" optional="YES" attributeType="String"/>
  36. <attribute name="topic" attributeType="String" minValueString="1" maxValueString="64" regularExpressionString="^[-_A-Za-z0-9]{1,64}$"/>
  37. <relationship name="notifications" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Notification" inverseName="subscription" inverseEntity="Notification"/>
  38. <uniquenessConstraints>
  39. <uniquenessConstraint>
  40. <constraint value="baseUrl"/>
  41. <constraint value="topic"/>
  42. </uniquenessConstraint>
  43. </uniquenessConstraints>
  44. </entity>
  45. <entity name="User" representedClassName="User" syncable="YES" codeGenerationType="class">
  46. <attribute name="baseUrl" attributeType="String"/>
  47. <attribute name="password" attributeType="String"/>
  48. <attribute name="username" attributeType="String"/>
  49. <uniquenessConstraints>
  50. <uniquenessConstraint>
  51. <constraint value="baseUrl"/>
  52. </uniquenessConstraint>
  53. </uniquenessConstraints>
  54. </entity>
  55. <elements>
  56. <element name="Notification" positionX="-54" positionY="9" width="128" height="179"/>
  57. <element name="Preference" positionX="-162" positionY="81" width="128" height="59"/>
  58. <element name="Subscription" positionX="-262.4760131835938" positionY="11.46405029296875" width="128" height="89"/>
  59. <element name="User" positionX="-162" positionY="81" width="128" height="74"/>
  60. <element name="Attachment" positionX="-153" positionY="90" width="128" height="134"/>
  61. </elements>
  62. </model>