<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22158.8" systemVersion="22F66" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
    <entity name="BGaverages" representedClassName="BGaverages" syncable="YES" codeGenerationType="class">
        <attribute name="average" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="average_1" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="average_7" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="average_30" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
    </entity>
    <entity name="BGmedian" representedClassName="BGmedian" syncable="YES" codeGenerationType="class">
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="median" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="median_1" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="median_7" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="median_30" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
    </entity>
    <entity name="Carbohydrates" representedClassName="Carbohydrates" syncable="YES" codeGenerationType="class">
        <attribute name="carbs" optional="YES" attributeType="Decimal" defaultValueString="0"/>
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="enteredBy" optional="YES" attributeType="String"/>
    </entity>
    <entity name="HbA1c" representedClassName="HbA1c" syncable="YES" codeGenerationType="class">
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="hba1c" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="hba1c_1" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="hba1c_7" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="hba1c_30" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
    </entity>
    <entity name="InsulinDistribution" representedClassName="InsulinDistribution" syncable="YES" codeGenerationType="class">
        <attribute name="bolus" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="scheduledBasal" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="tempBasal" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <relationship name="insulin" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Oref0Suggestion" inverseName="computedInsulinDistribution" inverseEntity="Oref0Suggestion"/>
    </entity>
    <entity name="LoopStatRecord" representedClassName="LoopStatRecord" syncable="YES" codeGenerationType="class">
        <attribute name="duration" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="end" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="interval" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="loopStatus" optional="YES" attributeType="String"/>
        <attribute name="start" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
    </entity>
    <entity name="Oref0Suggestion" representedClassName="Oref0Suggestion" syncable="YES" codeGenerationType="class">
        <relationship name="computedInsulinDistribution" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="InsulinDistribution" inverseName="insulin" inverseEntity="InsulinDistribution"/>
        <relationship name="computedTDD" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="TDD" inverseName="computed" inverseEntity="TDD"/>
    </entity>
    <entity name="Override" representedClassName="Override" syncable="YES" codeGenerationType="class">
        <attribute name="advancedSettings" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="cr" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="enabled" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="end" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="id" optional="YES" attributeType="String"/>
        <attribute name="indefinite" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="isf" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
        <attribute name="isfAndCr" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="isPreset" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="percentage" optional="YES" attributeType="Double" defaultValueString="100" usesScalarValueType="YES"/>
        <attribute name="smbIsAlwaysOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="smbIsOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="smbMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
        <attribute name="start" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="target" optional="YES" attributeType="Decimal" defaultValueString="100"/>
        <attribute name="uamMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
    </entity>
    <entity name="OverridePresets" representedClassName="OverridePresets" syncable="YES" codeGenerationType="class">
        <attribute name="advancedSettings" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="cr" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="end" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="id" optional="YES" attributeType="String"/>
        <attribute name="indefinite" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
        <attribute name="isf" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
        <attribute name="isfAndCr" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
        <attribute name="name" optional="YES" attributeType="String"/>
        <attribute name="percentage" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="smbIsAlwaysOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="smbIsOff" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
        <attribute name="smbMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
        <attribute name="start" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="target" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="uamMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
    </entity>
    <entity name="Presets" representedClassName="Presets" syncable="YES" codeGenerationType="class">
        <attribute name="carbs" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="dish" optional="YES" attributeType="String"/>
        <attribute name="fat" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="protein" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
    </entity>
    <entity name="Readings" representedClassName="Readings" syncable="YES" codeGenerationType="class">
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="glucose" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
        <attribute name="id" optional="YES" attributeType="String"/>
    </entity>
    <entity name="StatsData" representedClassName="StatsData" syncable="YES" codeGenerationType="class">
        <attribute name="lastrun" attributeType="Date" defaultDateTimeInterval="704497620" usesScalarValueType="NO"/>
    </entity>
    <entity name="Target" representedClassName="Target" syncable="YES" codeGenerationType="class">
        <attribute name="current" optional="YES" attributeType="Decimal" defaultValueString="100"/>
    </entity>
    <entity name="TDD" representedClassName="TDD" syncable="YES" codeGenerationType="class">
        <attribute name="tdd" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <relationship name="computed" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Oref0Suggestion" inverseName="computedTDD" inverseEntity="Oref0Suggestion"/>
    </entity>
    <entity name="TempTargets" representedClassName="TempTargets" syncable="YES" codeGenerationType="class">
        <attribute name="active" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="hbt" optional="YES" attributeType="Double" defaultValueString="160" usesScalarValueType="YES"/>
        <attribute name="id" optional="YES" attributeType="String"/>
        <attribute name="startDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
    </entity>
    <entity name="TempTargetsSlider" representedClassName="TempTargetsSlider" syncable="YES" codeGenerationType="class">
        <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="defaultHBT" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
        <attribute name="enabled" optional="YES" attributeType="Boolean" defaultValueString="100" usesScalarValueType="YES"/>
        <attribute name="hbt" optional="YES" attributeType="Double" defaultValueString="160" usesScalarValueType="YES"/>
        <attribute name="id" optional="YES" attributeType="String" defaultValueString="empy"/>
        <attribute name="isPreset" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
    </entity>
</model>