Newer Older
114 lines | 11.886kb
Bogdan Timofte authored a month ago
1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23657" systemVersion="24G81" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithCloudKit="YES">
3
    <entity name="ChargedDevice" representedClassName="ChargedDevice" syncable="YES" codeGenerationType="class">
4
        <attribute name="id" optional="YES" attributeType="String"/>
5
        <attribute name="name" optional="YES" attributeType="String"/>
6
        <attribute name="deviceClassRawValue" optional="YES" attributeType="String"/>
7
        <attribute name="supportsChargingWhileOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
8
        <attribute name="supportsWiredCharging" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
9
        <attribute name="supportsWirelessCharging" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
10
        <attribute name="preferredChargingTransportRawValue" optional="YES" attributeType="String"/>
11
        <attribute name="wirelessChargingProfileRawValue" optional="YES" attributeType="String"/>
12
        <attribute name="wiredChargeCompletionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
13
        <attribute name="wirelessChargeCompletionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
14
        <attribute name="minimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
15
        <attribute name="estimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
16
        <attribute name="wiredMinimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
17
        <attribute name="wirelessMinimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
18
        <attribute name="wiredEstimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
19
        <attribute name="wirelessEstimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
20
        <attribute name="wirelessChargerEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
21
        <attribute name="chargerObservedVoltageSelectionsRawValue" optional="YES" attributeType="String"/>
22
        <attribute name="chargerIdleCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
23
        <attribute name="chargerEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
24
        <attribute name="chargerMaximumPowerWatts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
25
        <attribute name="qrIdentifier" optional="YES" attributeType="String"/>
26
        <attribute name="lastAssociatedMeterMAC" optional="YES" attributeType="String"/>
27
        <attribute name="notes" optional="YES" attributeType="String"/>
28
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
29
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
30
    </entity>
31
    <entity name="ChargeSession" representedClassName="ChargeSession" syncable="YES" codeGenerationType="class">
32
        <attribute name="id" optional="YES" attributeType="String"/>
33
        <attribute name="chargedDeviceID" optional="YES" attributeType="String"/>
34
        <attribute name="chargerID" optional="YES" attributeType="String"/>
35
        <attribute name="meterMACAddress" optional="YES" attributeType="String"/>
36
        <attribute name="meterName" optional="YES" attributeType="String"/>
37
        <attribute name="meterModel" optional="YES" attributeType="String"/>
38
        <attribute name="startedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
39
        <attribute name="endedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
40
        <attribute name="lastObservedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
41
        <attribute name="statusRawValue" optional="YES" attributeType="String"/>
42
        <attribute name="sourceModeRawValue" optional="YES" attributeType="String"/>
43
        <attribute name="chargingTransportRawValue" optional="YES" attributeType="String"/>
44
        <attribute name="selectedDataGroup" optional="YES" attributeType="Integer 16" usesScalarValueType="YES"/>
45
        <attribute name="meterEnergyBaselineWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
46
        <attribute name="meterChargeBaselineAh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
47
        <attribute name="meterLastEnergyWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
48
        <attribute name="meterLastChargeAh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
49
        <attribute name="measuredEnergyWh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
50
        <attribute name="effectiveBatteryEnergyWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
51
        <attribute name="measuredChargeAh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
52
        <attribute name="minimumObservedCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
53
        <attribute name="maximumObservedCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
54
        <attribute name="maximumObservedPowerWatts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
55
        <attribute name="maximumObservedVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
56
        <attribute name="selectedSourceVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
57
        <attribute name="completionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
58
        <attribute name="stopThresholdAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
59
        <attribute name="startBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
60
        <attribute name="endBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
61
        <attribute name="capacityEstimateWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
62
        <attribute name="wirelessEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
63
        <attribute name="usesEstimatedWirelessEfficiency" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
64
        <attribute name="shouldWarnAboutLowWirelessEfficiency" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
65
        <attribute name="supportsChargingWhileOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
66
        <attribute name="usedOfflineMeterCounters" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
67
        <attribute name="belowThresholdSince" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
68
        <attribute name="lastObservedCurrentAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
69
        <attribute name="lastObservedPowerWatts" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
70
        <attribute name="lastObservedVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
71
        <attribute name="targetBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
72
        <attribute name="targetBatteryAlertTriggeredAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
73
        <attribute name="requiresCompletionConfirmation" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
74
        <attribute name="completionConfirmationRequestedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
75
        <attribute name="completionContradictionPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
76
        <attribute name="completionConfirmationCooldownUntil" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
77
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
78
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
79
    </entity>
80
    <entity name="ChargeCheckpoint" representedClassName="ChargeCheckpoint" syncable="YES" codeGenerationType="class">
81
        <attribute name="id" optional="YES" attributeType="String"/>
82
        <attribute name="sessionID" optional="YES" attributeType="String"/>
83
        <attribute name="chargedDeviceID" optional="YES" attributeType="String"/>
84
        <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
85
        <attribute name="batteryPercent" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
86
        <attribute name="measuredEnergyWh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
87
        <attribute name="measuredChargeAh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
88
        <attribute name="currentAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
89
        <attribute name="voltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
90
        <attribute name="label" optional="YES" attributeType="String"/>
91
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
92
    </entity>
93
    <entity name="ChargeSessionSample" representedClassName="ChargeSessionSample" syncable="YES" codeGenerationType="class">
94
        <attribute name="id" optional="YES" attributeType="String"/>
95
        <attribute name="sessionID" optional="YES" attributeType="String"/>
96
        <attribute name="chargedDeviceID" optional="YES" attributeType="String"/>
97
        <attribute name="bucketIndex" optional="YES" attributeType="Integer 32" usesScalarValueType="YES"/>
98
        <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
99
        <attribute name="averageCurrentAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
100
        <attribute name="averageVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
101
        <attribute name="averagePowerWatts" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
102
        <attribute name="measuredEnergyWh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
103
        <attribute name="measuredChargeAh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
104
        <attribute name="sampleCount" optional="YES" attributeType="Integer 16" usesScalarValueType="YES"/>
105
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
106
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
107
    </entity>
108
    <elements>
109
        <element name="ChargedDevice" positionX="-72" positionY="-36" width="128" height="373"/>
110
        <element name="ChargeSession" positionX="136" positionY="-36" width="128" height="748"/>
111
        <element name="ChargeCheckpoint" positionX="344" positionY="-36" width="128" height="208"/>
112
        <element name="ChargeSessionSample" positionX="552" positionY="-36" width="128" height="253"/>
113
    </elements>
114
</model>