31 lines
2.5 KiB
XML
31 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="15702" systemVersion="19D76" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
|
|
<entity name="PersistentCacheGroup" representedClassName="PersistentCacheGroup" syncable="YES">
|
|
<attribute name="key" optional="YES" attributeType="String"/>
|
|
<relationship name="cacheItems" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="PersistentCacheItem" inverseName="cacheGroups" inverseEntity="PersistentCacheItem"/>
|
|
<relationship name="mustHaveCacheItems" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="PersistentCacheItem" inverseName="mustHaveCacheGroups" inverseEntity="PersistentCacheItem"/>
|
|
<fetchIndex name="byKeyIndex">
|
|
<fetchIndexElement property="key" type="Binary" order="ascending"/>
|
|
</fetchIndex>
|
|
</entity>
|
|
<entity name="PersistentCacheItem" representedClassName="PersistentCacheItem" syncable="YES">
|
|
<attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="isDownloaded" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
|
|
<attribute name="key" optional="YES" attributeType="String"/>
|
|
<attribute name="url" attributeType="URI"/>
|
|
<attribute name="variant" optional="YES" attributeType="String"/>
|
|
<relationship name="cacheGroups" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="PersistentCacheGroup" inverseName="cacheItems" inverseEntity="PersistentCacheGroup"/>
|
|
<relationship name="mustHaveCacheGroups" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="PersistentCacheGroup" inverseName="mustHaveCacheItems" inverseEntity="PersistentCacheGroup"/>
|
|
<fetchIndex name="byDateIndex">
|
|
<fetchIndexElement property="date" type="Binary" order="ascending"/>
|
|
</fetchIndex>
|
|
<fetchIndex name="compoundIndex">
|
|
<fetchIndexElement property="key" type="Binary" order="ascending"/>
|
|
<fetchIndexElement property="variant" type="Binary" order="ascending"/>
|
|
</fetchIndex>
|
|
</entity>
|
|
<elements>
|
|
<element name="PersistentCacheGroup" positionX="-63" positionY="-18" width="128" height="88"/>
|
|
<element name="PersistentCacheItem" positionX="-54" positionY="-9" width="128" height="148"/>
|
|
</elements>
|
|
</model> |