<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="6252" systemVersion="14B25" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
    <entity name="Competitor" representedClassName="Competitor" syncable="YES">
        <attribute name="competitorId" optional="YES" attributeType="String" indexed="YES" syncable="YES"/>
        <attribute name="countryCode" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="displayName" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="nationality" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="sailId" optional="YES" attributeType="String" syncable="YES"/>
        <relationship name="leaderBoard" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="LeaderBoard" inverseName="competitor" inverseEntity="LeaderBoard" syncable="YES"/>
    </entity>
    <entity name="Event" representedClassName="Event" syncable="YES">
        <attribute name="endDate" optional="YES" attributeType="Date" syncable="YES"/>
        <attribute name="eventId" optional="YES" attributeType="String" indexed="YES" syncable="YES"/>
        <attribute name="imageUrl" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="lastSyncDate" optional="YES" attributeType="Date" syncable="YES"/>
        <attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="serverUrl" optional="YES" attributeType="String" syncable="YES"/>
        <attribute name="startDate" optional="YES" attributeType="Date" syncable="YES"/>
        <attribute name="userImage" optional="YES" attributeType="Binary" syncable="YES"/>
        <relationship name="gpsFixes" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="GPSFix" inverseName="event" inverseEntity="GPSFix" syncable="YES"/>
        <relationship name="leaderBoard" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="LeaderBoard" inverseName="event" inverseEntity="LeaderBoard" syncable="YES"/>
    </entity>
    <entity name="GPSFix" representedClassName="GPSFix" syncable="YES">
        <attribute name="bearingDeg" optional="YES" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
        <attribute name="latDeg" optional="YES" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
        <attribute name="lonDeg" optional="YES" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
        <attribute name="speedMperS" optional="YES" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
        <attribute name="timeMillis" optional="YES" attributeType="Double" defaultValueString="0.0" syncable="YES"/>
        <relationship name="event" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Event" inverseName="gpsFixes" inverseEntity="Event" syncable="YES"/>
    </entity>
    <entity name="LeaderBoard" representedClassName="LeaderBoard" syncable="YES">
        <attribute name="name" optional="YES" attributeType="String" indexed="YES" syncable="YES"/>
        <relationship name="competitor" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="Competitor" inverseName="leaderBoard" inverseEntity="Competitor" syncable="YES"/>
        <relationship name="event" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Event" inverseName="leaderBoard" inverseEntity="Event" syncable="YES"/>
    </entity>
    <elements>
        <element name="Competitor" positionX="-9" positionY="81" width="128" height="148"/>
        <element name="Event" positionX="-63" positionY="27" width="128" height="193"/>
        <element name="GPSFix" positionX="-63" positionY="-18" width="128" height="133"/>
        <element name="LeaderBoard" positionX="-36" positionY="72" width="128" height="90"/>
    </elements>
</model>