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