Newer Older
179 lines | 18.528kb
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="deviceTemplateID" optional="YES" attributeType="String"/>
8
        <attribute name="profileID" optional="YES" attributeType="String"/>
9
        <attribute name="hasInternalSubject" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
10
        <attribute name="supportsChargingWhileOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
11
        <attribute name="chargingStateAvailabilityRawValue" optional="YES" attributeType="String"/>
12
        <attribute name="supportsWiredCharging" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
13
        <attribute name="supportsWirelessCharging" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
14
        <attribute name="preferredChargingTransportRawValue" optional="YES" attributeType="String"/>
15
        <attribute name="wirelessChargingProfileRawValue" optional="YES" attributeType="String"/>
16
        <attribute name="configuredCompletionCurrentsRawValue" optional="YES" attributeType="String"/>
17
        <attribute name="learnedCompletionCurrentsRawValue" optional="YES" attributeType="String"/>
18
        <attribute name="wiredChargeCompletionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
19
        <attribute name="wirelessChargeCompletionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
20
        <attribute name="minimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
21
        <attribute name="estimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
22
        <attribute name="wiredMinimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
23
        <attribute name="wirelessMinimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
24
        <attribute name="wiredEstimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
25
        <attribute name="wirelessEstimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
26
        <attribute name="wirelessChargerEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
27
        <attribute name="chargerObservedVoltageSelectionsRawValue" optional="YES" attributeType="String"/>
28
        <attribute name="chargerIdleCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
29
        <attribute name="chargerEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
30
        <attribute name="chargerMaximumPowerWatts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
31
        <attribute name="qrIdentifier" optional="YES" attributeType="String"/>
32
        <attribute name="notes" optional="YES" attributeType="String"/>
33
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
34
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
35
    </entity>
36
    <entity name="Powerbank" representedClassName="Powerbank" syncable="YES" codeGenerationType="class">
37
        <attribute name="id" optional="YES" attributeType="String"/>
38
        <attribute name="name" optional="YES" attributeType="String"/>
39
        <attribute name="qrIdentifier" optional="YES" attributeType="String"/>
40
        <attribute name="deviceTemplateID" optional="YES" attributeType="String"/>
41
        <attribute name="profileID" optional="YES" attributeType="String"/>
42
        <attribute name="notes" optional="YES" attributeType="String"/>
43
        <attribute name="batteryLevelReportingRawValue" optional="YES" attributeType="String"/>
44
        <attribute name="batteryBarsCount" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
45
        <attribute name="estimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
46
        <attribute name="apparentCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
47
        <attribute name="configuredCompletionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
48
        <attribute name="learnedCompletionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
49
        <attribute name="minimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
50
        <attribute name="sourceObservedVoltageSelectionsRawValue" optional="YES" attributeType="String"/>
51
        <attribute name="sourceIdleCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
52
        <attribute name="sourceMaximumPowerWatts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
53
        <attribute name="sourceEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
54
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
55
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
56
    </entity>
57
    <entity name="DeviceProfile" representedClassName="DeviceProfile" syncable="YES" codeGenerationType="class">
58
        <attribute name="id" optional="YES" attributeType="String"/>
59
        <attribute name="name" optional="YES" attributeType="String"/>
60
        <attribute name="categoryRawValue" optional="YES" attributeType="String"/>
61
        <attribute name="iconSymbolName" optional="YES" attributeType="String"/>
62
        <attribute name="iconFallbackSymbolName" optional="YES" attributeType="String"/>
63
        <attribute name="isCustom" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
64
        <attribute name="schemaVersion" optional="YES" attributeType="Integer 16" defaultValueString="1" usesScalarValueType="YES"/>
65
        <attribute name="sortOrder" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
66
        <attribute name="group" optional="YES" attributeType="String"/>
67
        <attribute name="capWiredCharging" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
68
        <attribute name="capWirelessCharging" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
69
        <attribute name="capWirelessProfilesRawValue" optional="YES" attributeType="String"/>
70
        <attribute name="capChargingStateAvailabilityRawValue" optional="YES" attributeType="String"/>
71
        <attribute name="capHasInternalSubject" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
72
        <attribute name="defaultWirelessChargingProfileRawValue" optional="YES" attributeType="String"/>
73
        <attribute name="defaultWiredMinimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
74
        <attribute name="defaultWirelessMinimumCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
75
        <attribute name="defaultWiredEstimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
76
        <attribute name="defaultWirelessEstimatedBatteryCapacityWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
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="ChargeSession" representedClassName="ChargeSession" syncable="YES" codeGenerationType="class">
81
        <attribute name="id" optional="YES" attributeType="String"/>
82
        <attribute name="chargedDeviceID" optional="YES" attributeType="String"/>
83
        <attribute name="chargedPowerbankID" optional="YES" attributeType="String"/>
84
        <attribute name="chargerID" optional="YES" attributeType="String"/>
85
        <attribute name="sourcePowerbankID" optional="YES" attributeType="String"/>
86
        <attribute name="meterMACAddress" optional="YES" attributeType="String"/>
87
        <attribute name="meterName" optional="YES" attributeType="String"/>
88
        <attribute name="meterModel" optional="YES" attributeType="String"/>
89
        <attribute name="startedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
90
        <attribute name="endedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
91
        <attribute name="lastObservedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
92
        <attribute name="pausedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
93
        <attribute name="statusRawValue" optional="YES" attributeType="String"/>
94
        <attribute name="sourceModeRawValue" optional="YES" attributeType="String"/>
95
        <attribute name="chargingTransportRawValue" optional="YES" attributeType="String"/>
96
        <attribute name="chargingStateRawValue" optional="YES" attributeType="String"/>
97
        <attribute name="autoStopEnabled" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
98
        <attribute name="selectedDataGroup" optional="YES" attributeType="Integer 16" usesScalarValueType="YES"/>
99
        <attribute name="meterEnergyBaselineWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
100
        <attribute name="meterChargeBaselineAh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
101
        <attribute name="meterDurationBaselineSeconds" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
102
        <attribute name="meterLastEnergyWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
103
        <attribute name="meterLastChargeAh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
104
        <attribute name="meterLastDurationSeconds" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
105
        <attribute name="measuredEnergyWh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
106
        <attribute name="effectiveBatteryEnergyWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
107
        <attribute name="measuredChargeAh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
108
        <attribute name="minimumObservedCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
109
        <attribute name="maximumObservedCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
110
        <attribute name="maximumObservedPowerWatts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
111
        <attribute name="maximumObservedVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
112
        <attribute name="selectedSourceVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
113
        <attribute name="completionCurrentAmps" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
114
        <attribute name="stopThresholdAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
115
        <attribute name="startBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
116
        <attribute name="endBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
117
        <attribute name="capacityEstimateWh" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
118
        <attribute name="wirelessEfficiencyFactor" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
119
        <attribute name="usesEstimatedWirelessEfficiency" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
120
        <attribute name="shouldWarnAboutLowWirelessEfficiency" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
121
        <attribute name="supportsChargingWhileOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
122
        <attribute name="usedOfflineMeterCounters" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
123
        <attribute name="belowThresholdSince" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
124
        <attribute name="lastObservedCurrentAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
125
        <attribute name="lastObservedPowerWatts" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
126
        <attribute name="lastObservedVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
127
        <attribute name="hasObservedChargeFlow" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
128
        <attribute name="targetBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
129
        <attribute name="targetBatteryAlertTriggeredAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
130
        <attribute name="requiresCompletionConfirmation" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
131
        <attribute name="completionConfirmationRequestedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
132
        <attribute name="completionContradictionPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
133
        <attribute name="completionConfirmationCooldownUntil" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
134
        <attribute name="trimStart" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
135
        <attribute name="trimEnd" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
136
        <attribute name="wasConflictHealed" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
137
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
138
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
139
    </entity>
140
    <entity name="ChargeCheckpoint" representedClassName="ChargeCheckpoint" syncable="YES" codeGenerationType="class">
141
        <attribute name="id" optional="YES" attributeType="String"/>
142
        <attribute name="sessionID" optional="YES" attributeType="String"/>
143
        <attribute name="chargedDeviceID" optional="YES" attributeType="String"/>
144
        <attribute name="powerbankID" optional="YES" attributeType="String"/>
145
        <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
146
        <attribute name="batteryPercent" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
147
        <attribute name="batteryBarsValue" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
148
        <attribute name="measuredEnergyWh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
149
        <attribute name="measuredChargeAh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
150
        <attribute name="currentAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
151
        <attribute name="voltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
152
        <attribute name="label" optional="YES" attributeType="String"/>
153
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
154
    </entity>
155
    <entity name="ChargeSessionSample" representedClassName="ChargeSessionSample" syncable="NO" codeGenerationType="class">
156
        <attribute name="id" optional="YES" attributeType="String"/>
157
        <attribute name="sessionID" optional="YES" attributeType="String"/>
158
        <attribute name="chargedDeviceID" optional="YES" attributeType="String"/>
159
        <attribute name="bucketIndex" optional="YES" attributeType="Integer 32" usesScalarValueType="YES"/>
160
        <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
161
        <attribute name="averageCurrentAmps" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
162
        <attribute name="averageVoltageVolts" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
163
        <attribute name="averagePowerWatts" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
164
        <attribute name="measuredEnergyWh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
165
        <attribute name="measuredChargeAh" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
166
        <attribute name="estimatedBatteryPercent" optional="YES" attributeType="Double" usesScalarValueType="YES"/>
167
        <attribute name="sampleCount" optional="YES" attributeType="Integer 16" usesScalarValueType="YES"/>
168
        <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
169
        <attribute name="updatedAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
170
    </entity>
171
    <elements>
172
        <element name="ChargedDevice" positionX="-72" positionY="-36" width="128" height="463"/>
173
        <element name="Powerbank" positionX="-72" positionY="450" width="128" height="328"/>
174
        <element name="DeviceProfile" positionX="-288" positionY="-36" width="160" height="358"/>
175
        <element name="ChargeSession" positionX="136" positionY="-36" width="128" height="913"/>
176
        <element name="ChargeCheckpoint" positionX="344" positionY="-36" width="128" height="238"/>
177
        <element name="ChargeSessionSample" positionX="552" positionY="-36" width="128" height="268"/>
178
    </elements>
179
</model>