contents 5.62 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10171" systemVersion="15E65" minimumToolsVersion="Xcode 7.0">
    <entity name="Bird" representedClassName="Bird" syncable="YES">
        <attribute name="colour" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
6 7 8 9 10 11
        <relationship name="nests" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Nest" inverseName="bird" inverseEntity="Nest" syncable="YES">
            <userInfo>
                <entry key="JSONPropertyKey" value="nest_ids"/>
                <entry key="key" value="value"/>
            </userInfo>
        </relationship>
12
        <relationship name="researchers" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Researcher" inverseName="birds" inverseEntity="Researcher" syncable="YES"/>
13 14 15 16 17 18 19 20 21 22 23 24
    </entity>
    <entity name="Branch" representedClassName="Branch" syncable="YES">
        <attribute name="ornaments" optional="YES" attributeType="Transformable" syncable="YES">
            <userInfo>
                <entry key="attributeValueClass" value="NSArray"/>
                <entry key="JSONValueTransformer" value="Array"/>
            </userInfo>
        </attribute>
        <relationship name="leaves" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Leaf" inverseName="branch" inverseEntity="Leaf" syncable="YES"/>
        <relationship name="nest" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="Nest" inverseName="branch" inverseEntity="Nest" syncable="YES"/>
        <relationship name="root" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Root" inverseName="branches" inverseEntity="Root" syncable="YES"/>
    </entity>
25 26 27 28 29 30
    <entity name="Forest" syncable="YES">
        <relationship name="trees" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Root" inverseName="forest" inverseEntity="Root" syncable="YES"/>
        <userInfo>
            <entry key="private" value="YES"/>
        </userInfo>
    </entity>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
    <entity name="Leaf" representedClassName="Leaf" syncable="YES">
        <attribute name="date" optional="YES" attributeType="Date" syncable="YES">
            <userInfo>
                <entry key="JSONPropertyKey" value="createDate"/>
            </userInfo>
        </attribute>
        <attribute name="tags" optional="YES" attributeType="Transformable" syncable="YES">
            <userInfo>
                <entry key="attributeValueClass" value="NSSet"/>
                <entry key="JSONValueTransformer" value="Set"/>
            </userInfo>
        </attribute>
        <relationship name="branch" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Branch" inverseName="leaves" inverseEntity="Branch" syncable="YES"/>
    </entity>
    <entity name="Nest" representedClassName="Nest" syncable="YES">
        <attribute name="eggCount" optional="YES" attributeType="Integer 16" syncable="YES"/>
        <relationship name="bird" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Bird" inverseName="nests" inverseEntity="Bird" syncable="YES">
            <userInfo>
                <entry key="JSONPropertyKey" value="bird_id"/>
            </userInfo>
        </relationship>
        <relationship name="branch" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Branch" inverseName="nest" inverseEntity="Branch" syncable="YES"/>
    </entity>
54 55 56 57
    <entity name="Researcher" representedClassName="Researcher" syncable="YES">
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
        <relationship name="birds" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Bird" inverseName="researchers" inverseEntity="Bird" syncable="YES"/>
    </entity>
58 59 60 61 62 63 64 65 66 67 68
    <entity name="Root" representedClassName="Root" syncable="YES">
        <attribute name="age" optional="YES" attributeType="Decimal" defaultValueString="0.0" syncable="YES"/>
        <attribute name="identifier" optional="YES" attributeType="Integer 64" defaultValueString="0" syncable="YES"/>
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="url" optional="YES" attributeType="Transformable" syncable="YES">
            <userInfo>
                <entry key="attributeValueClassName" value="NSURL"/>
                <entry key="JSONTransformerName" value="BUYURL"/>
            </userInfo>
        </attribute>
        <relationship name="branches" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Branch" inverseName="root" inverseEntity="Branch" syncable="YES"/>
69
        <relationship name="forest" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Forest" inverseName="trees" inverseEntity="Forest" syncable="YES"/>
70 71
    </entity>
    <elements>
72
        <element name="Bird" positionX="146" positionY="111" width="128" height="103"/>
73
        <element name="Branch" positionX="-288" positionY="-3" width="128" height="105"/>
74
        <element name="Forest" positionX="-718" positionY="57" width="128" height="58"/>
75 76 77
        <element name="Leaf" positionX="-72" positionY="-18" width="128" height="90"/>
        <element name="Nest" positionX="-72" positionY="126" width="128" height="90"/>
        <element name="Root" positionX="-504" positionY="-18" width="128" height="133"/>
78
        <element name="Researcher" positionX="-288" positionY="81" width="128" height="75"/>
79 80
    </elements>
</model>