forked from 3lvis/Sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of relationship by ids
- Loading branch information
Showing
6 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
Tests/Models/Notes.xcdatamodeld/Demo.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="7549" systemVersion="14E7f" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic"> | ||
<entity name="Note" syncable="YES"> | ||
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="9057" systemVersion="15B42" minimumToolsVersion="Automatic"> | ||
<entity name="SuperNote" syncable="YES"> | ||
<attribute name="remoteID" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/> | ||
<attribute name="text" optional="YES" attributeType="String" syncable="YES"/> | ||
<relationship name="tags" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Tag" inverseName="notes" inverseEntity="Tag" syncable="YES"/> | ||
<relationship name="user" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="User" inverseName="notes" inverseEntity="User" syncable="YES"/> | ||
<relationship name="superTags" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="SuperTag" inverseName="superNotes" inverseEntity="SuperTag" syncable="YES"/> | ||
<relationship name="superUser" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="SuperUser" inverseName="superNotes" inverseEntity="SuperUser" syncable="YES"/> | ||
</entity> | ||
<entity name="Tag" syncable="YES"> | ||
<entity name="SuperTag" syncable="YES"> | ||
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="remoteID" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/> | ||
<relationship name="notes" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Note" inverseName="tags" inverseEntity="Note" syncable="YES"/> | ||
<relationship name="superNotes" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="SuperNote" inverseName="superTags" inverseEntity="SuperNote" syncable="YES"/> | ||
</entity> | ||
<entity name="User" representedClassName="" syncable="YES"> | ||
<entity name="SuperUser" representedClassName="" syncable="YES"> | ||
<attribute name="createdAt" optional="YES" attributeType="Date" syncable="YES"/> | ||
<attribute name="email" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/> | ||
<attribute name="remoteID" attributeType="Integer 32" defaultValueString="0" syncable="YES"/> | ||
<attribute name="updatedAt" optional="YES" attributeType="Date" syncable="YES"/> | ||
<relationship name="notes" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Note" inverseName="user" inverseEntity="Note" syncable="YES"> | ||
<relationship name="superNotes" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="SuperNote" inverseName="superUser" inverseEntity="SuperNote" syncable="YES"> | ||
<userInfo> | ||
<entry key="hyper.remoteKey" value="annotations"/> | ||
</userInfo> | ||
</relationship> | ||
</entity> | ||
<elements> | ||
<element name="Note" positionX="-20" positionY="18" width="128" height="103"/> | ||
<element name="Tag" positionX="160" positionY="0" width="128" height="90"/> | ||
<element name="User" positionX="-207" positionY="-15" width="128" height="135"/> | ||
<element name="SuperNote" positionX="-20" positionY="18" width="128" height="105"/> | ||
<element name="SuperTag" positionX="160" positionY="0" width="128" height="90"/> | ||
<element name="SuperUser" positionX="-207" positionY="-15" width="128" height="135"/> | ||
</elements> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters