contents 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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="Notification" representedClassName="Notification" syncable="YES" codeGenerationType="class">
  4. <attribute name="actions" optional="YES" attributeType="String"/>
  5. <attribute name="click" optional="YES" attributeType="String"/>
  6. <attribute name="id" attributeType="String"/>
  7. <attribute name="message" attributeType="String"/>
  8. <attribute name="priority" optional="YES" attributeType="Integer 16" minValueString="1" maxValueString="5" defaultValueString="3" usesScalarValueType="YES"/>
  9. <attribute name="tags" optional="YES" attributeType="String"/>
  10. <attribute name="time" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
  11. <attribute name="title" optional="YES" attributeType="String"/>
  12. <relationship name="subscription" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Subscription" inverseName="notifications" inverseEntity="Subscription"/>
  13. <uniquenessConstraints>
  14. <uniquenessConstraint>
  15. <constraint value="id"/>
  16. </uniquenessConstraint>
  17. </uniquenessConstraints>
  18. </entity>
  19. <entity name="Preference" representedClassName="Preference" syncable="YES" codeGenerationType="class">
  20. <attribute name="key" optional="YES" attributeType="String"/>
  21. <attribute name="value" optional="YES" attributeType="String"/>
  22. </entity>
  23. <entity name="Subscription" representedClassName="Subscription" syncable="YES" codeGenerationType="class">
  24. <attribute name="baseUrl" attributeType="String"/>
  25. <attribute name="lastNotificationId" optional="YES" attributeType="String"/>
  26. <attribute name="topic" attributeType="String" minValueString="1" maxValueString="64" regularExpressionString="^[-_A-Za-z0-9]{1,64}$"/>
  27. <relationship name="notifications" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Notification" inverseName="subscription" inverseEntity="Notification"/>
  28. <uniquenessConstraints>
  29. <uniquenessConstraint>
  30. <constraint value="baseUrl"/>
  31. <constraint value="topic"/>
  32. </uniquenessConstraint>
  33. </uniquenessConstraints>
  34. </entity>
  35. <entity name="User" representedClassName="User" syncable="YES" codeGenerationType="class">
  36. <attribute name="baseUrl" attributeType="String"/>
  37. <attribute name="password" attributeType="String"/>
  38. <attribute name="username" attributeType="String"/>
  39. <uniquenessConstraints>
  40. <uniquenessConstraint>
  41. <constraint value="baseUrl"/>
  42. </uniquenessConstraint>
  43. </uniquenessConstraints>
  44. </entity>
  45. <elements>
  46. <element name="Notification" positionX="-54" positionY="9" width="128" height="164"/>
  47. <element name="Subscription" positionX="-262.4760131835938" positionY="11.46405029296875" width="128" height="89"/>
  48. <element name="User" positionX="-162" positionY="81" width="128" height="74"/>
  49. <element name="Preference" positionX="-162" positionY="81" width="128" height="59"/>
  50. </elements>
  51. </model>