<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1171" systemVersion="11E53" minimumToolsVersion="Xcode 4.1" macOSVersion="Automatic" iOSVersion="Automatic">
    <entity name="Coach" representedClassName="Coach" parentEntity="Human" syncable="YES">
        <relationship name="team" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Team" inverseName="coach" inverseEntity="Team" syncable="YES"/>
    </entity>
    <entity name="Group" representedClassName="Group" syncable="YES">
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
        <relationship name="teams" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Team" inverseName="group" inverseEntity="Team" syncable="YES"/>
    </entity>
    <entity name="Human" representedClassName="Human" isAbstract="YES" syncable="YES">
        <attribute name="givenname" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
    </entity>
    <entity name="Match" representedClassName="Match" syncable="YES">
        <attribute name="date" optional="YES" attributeType="Date" syncable="YES"/>
        <attribute name="group" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="scoreGuest" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
        <attribute name="scoreHome" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
        <attribute name="stadion" optional="YES" attributeType="String" syncable="YES"/>
        <relationship name="guest" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Team" syncable="YES"/>
        <relationship name="home" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Team" syncable="YES"/>
    </entity>
    <entity name="Player" representedClassName="Player" parentEntity="Human" syncable="YES">
        <attribute name="club" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="number" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
        <attribute name="position" optional="YES" attributeType="String" syncable="YES"/>
        <relationship name="team" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Team" inverseName="players" inverseEntity="Team" syncable="YES"/>
    </entity>
    <entity name="Team" representedClassName="Team" syncable="YES">
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
        <relationship name="coach" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Coach" inverseName="team" inverseEntity="Coach" syncable="YES"/>
        <relationship name="group" optional="YES" minCount="1" maxCount="1" deletionRule="Nullify" destinationEntity="Group" inverseName="teams" inverseEntity="Group" syncable="YES"/>
        <relationship name="players" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Player" inverseName="team" inverseEntity="Player" syncable="YES"/>
        <fetchedProperty name="pattack" optional="YES" syncable="YES">
            <fetchRequest name="fetchedPropertyFetchRequest" entity="Player" predicateString="(SELF.position == &quot;Angriff&quot;) AND (SELF.team ==$FETCH_SOURCE)"/>
        </fetchedProperty>
        <fetchedProperty name="pcenter" optional="YES" syncable="YES">
            <fetchRequest name="fetchedPropertyFetchRequest" entity="Player" predicateString="(SELF.position == &quot;Mittelfeld&quot;) AND (SELF.team ==$FETCH_SOURCE)"/>
        </fetchedProperty>
        <fetchedProperty name="pdefense" optional="YES" syncable="YES">
            <fetchRequest name="fetchedPropertyFetchRequest" entity="Player" predicateString="(SELF.position == &quot;Abwehr&quot;) AND (SELF.team ==$FETCH_SOURCE)"/>
        </fetchedProperty>
        <fetchedProperty name="pkeeper" optional="YES" syncable="YES">
            <fetchRequest name="fetchedPropertyFetchRequest" entity="Player" predicateString="(SELF.position == &quot;Torwart&quot;) AND (SELF.team ==$FETCH_SOURCE)"/>
        </fetchedProperty>
    </entity>
    <fetchRequest name="initialisationCheck" entity="Team" predicateString="name == &quot;Deutschland&quot;"/>
    <fetchRequest name="MatchRequest" entity="Match" predicateString="group == $GROUP"/>
    <elements>
        <element name="Coach" positionX="-209" positionY="-78" width="128" height="60"/>
        <element name="Group" positionX="162" positionY="63" width="128" height="75"/>
        <element name="Human" positionX="-378" positionY="-18" width="128" height="75"/>
        <element name="Match" positionX="153" positionY="-171" width="128" height="150"/>
        <element name="Player" positionX="-207" positionY="27" width="128" height="105"/>
        <element name="Team" positionX="-27" positionY="-45" width="128" height="105"/>
    </elements>
</model>