contents 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22222" systemVersion="22G120" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
  3. <entity name="Autosens_" representedClassName="Autosens_" syncable="YES">
  4. <attribute name="newisf" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  5. <attribute name="ratio" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  6. <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  7. </entity>
  8. <entity name="Autotune_" representedClassName="Autotune_" syncable="YES">
  9. <attribute name="basalProfile" optional="YES" attributeType="Transformable"/>
  10. <attribute name="carbRatio" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  11. <attribute name="createdAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  12. <attribute name="sensitivity" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  13. </entity>
  14. <entity name="BGaverages" representedClassName="BGaverages" syncable="YES">
  15. <attribute name="average" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  16. <attribute name="average_1" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  17. <attribute name="average_7" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  18. <attribute name="average_30" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  19. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  20. </entity>
  21. <entity name="BGmedian" representedClassName="BGmedian" syncable="YES">
  22. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  23. <attribute name="median" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  24. <attribute name="median_1" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  25. <attribute name="median_7" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  26. <attribute name="median_30" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  27. </entity>
  28. <entity name="CarbEntryStored" representedClassName="CarbEntryStored" syncable="YES">
  29. <attribute name="carbs" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  30. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  31. <attribute name="fat" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  32. <attribute name="id" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
  33. <attribute name="isFPU" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  34. <attribute name="note" optional="YES" attributeType="String"/>
  35. <attribute name="protein" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  36. <fetchIndex name="byDate">
  37. <fetchIndexElement property="date" type="Binary" order="ascending"/>
  38. </fetchIndex>
  39. </entity>
  40. <entity name="Forecast" representedClassName="Forecast" syncable="YES">
  41. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  42. <attribute name="id" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
  43. <attribute name="type" optional="YES" attributeType="String"/>
  44. <relationship name="forecastValues" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="ForecastValue" inverseName="forecast" inverseEntity="ForecastValue"/>
  45. <relationship name="orefDetermination" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="OrefDetermination" inverseName="forecasts" inverseEntity="OrefDetermination"/>
  46. <fetchIndex name="byDate">
  47. <fetchIndexElement property="date" type="Binary" order="descending"/>
  48. </fetchIndex>
  49. </entity>
  50. <entity name="ForecastValue" representedClassName="ForecastValue" syncable="YES">
  51. <attribute name="index" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
  52. <attribute name="value" optional="YES" attributeType="Integer 32" defaultValueString="0.0" usesScalarValueType="YES"/>
  53. <relationship name="forecast" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Forecast" inverseName="forecastValues" inverseEntity="Forecast"/>
  54. </entity>
  55. <entity name="GlucoseStored" representedClassName="GlucoseStored" syncable="YES">
  56. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  57. <attribute name="direction" optional="YES" attributeType="String"/>
  58. <attribute name="glucose" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
  59. <attribute name="id" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
  60. <attribute name="isManual" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  61. <fetchIndex name="byDate">
  62. <fetchIndexElement property="date" type="Binary" order="descending"/>
  63. </fetchIndex>
  64. </entity>
  65. <entity name="HbA1c" representedClassName="HbA1c" syncable="YES">
  66. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  67. <attribute name="hba1c" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  68. <attribute name="hba1c_1" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  69. <attribute name="hba1c_7" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  70. <attribute name="hba1c_30" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  71. </entity>
  72. <entity name="ImportError" representedClassName="ImportError" syncable="YES">
  73. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  74. <attribute name="error" optional="YES" attributeType="String"/>
  75. </entity>
  76. <entity name="InsulinDistribution" representedClassName="InsulinDistribution" syncable="YES">
  77. <attribute name="bolus" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  78. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  79. <attribute name="scheduledBasal" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  80. <attribute name="tempBasal" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  81. <relationship name="insulin" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Oref0Suggestion" inverseName="computedInsulinDistribution" inverseEntity="Oref0Suggestion"/>
  82. <fetchIndex name="byDate">
  83. <fetchIndexElement property="date" type="Binary" order="ascending"/>
  84. </fetchIndex>
  85. </entity>
  86. <entity name="InsulinStored" representedClassName="InsulinStored" syncable="YES">
  87. <attribute name="amount" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  88. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  89. <attribute name="external" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  90. <attribute name="id" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
  91. <attribute name="isSMB" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  92. <fetchIndex name="byDate">
  93. <fetchIndexElement property="date" type="Binary" order="ascending"/>
  94. </fetchIndex>
  95. </entity>
  96. <entity name="LastLoop" representedClassName="LastLoop" syncable="YES">
  97. <attribute name="cob" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  98. <attribute name="iob" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  99. <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  100. <fetchIndex name="byDate">
  101. <fetchIndexElement property="timestamp" type="Binary" order="descending"/>
  102. </fetchIndex>
  103. </entity>
  104. <entity name="LoopStatRecord" representedClassName="LoopStatRecord" syncable="YES">
  105. <attribute name="duration" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  106. <attribute name="end" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  107. <attribute name="interval" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  108. <attribute name="loopStatus" optional="YES" attributeType="String"/>
  109. <attribute name="start" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  110. </entity>
  111. <entity name="OpenAPS_Battery" representedClassName="OpenAPS_Battery" syncable="YES">
  112. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  113. <attribute name="display" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  114. <attribute name="id" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
  115. <attribute name="percent" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
  116. <attribute name="status" optional="YES" attributeType="String"/>
  117. <attribute name="voltage" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  118. <fetchIndex name="byDate">
  119. <fetchIndexElement property="date" type="Binary" order="descending"/>
  120. </fetchIndex>
  121. </entity>
  122. <entity name="Oref0Suggestion" representedClassName="Oref0Suggestion" syncable="YES">
  123. <relationship name="computedInsulinDistribution" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="InsulinDistribution" inverseName="insulin" inverseEntity="InsulinDistribution"/>
  124. <relationship name="computedTDD" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="TDD" inverseName="computed" inverseEntity="TDD"/>
  125. </entity>
  126. <entity name="OrefDetermination" representedClassName="OrefDetermination" syncable="YES">
  127. <attribute name="bolus" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  128. <attribute name="carbRatio" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  129. <attribute name="carbsRequired" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
  130. <attribute name="cob" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
  131. <attribute name="currentTarget" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  132. <attribute name="deliverAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  133. <attribute name="duration" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
  134. <attribute name="enacted" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  135. <attribute name="eventualBG" optional="YES" attributeType="Decimal" defaultValueString="0"/>
  136. <attribute name="expectedDelta" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  137. <attribute name="glucose" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  138. <attribute name="id" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
  139. <attribute name="insulinForManualBolus" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  140. <attribute name="insulinReq" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  141. <attribute name="insulinSensitivity" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  142. <attribute name="iob" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  143. <attribute name="manualBolusErrorString" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  144. <attribute name="minDelta" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  145. <attribute name="rate" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  146. <attribute name="reason" optional="YES" attributeType="String"/>
  147. <attribute name="received" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  148. <attribute name="reservoir" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  149. <attribute name="scheduledBasal" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  150. <attribute name="sensitivityRatio" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  151. <attribute name="smbToDeliver" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  152. <attribute name="temp" optional="YES" attributeType="String"/>
  153. <attribute name="tempBasal" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  154. <attribute name="threshold" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  155. <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  156. <attribute name="timestampEnacted" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  157. <attribute name="totalDailyDose" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  158. <relationship name="forecasts" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Forecast" inverseName="orefDetermination" inverseEntity="Forecast"/>
  159. <fetchIndex name="byDate">
  160. <fetchIndexElement property="deliverAt" type="Binary" order="descending"/>
  161. </fetchIndex>
  162. </entity>
  163. <entity name="Override" representedClassName="Override" syncable="YES">
  164. <attribute name="advancedSettings" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  165. <attribute name="cr" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
  166. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  167. <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  168. <attribute name="enabled" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  169. <attribute name="end" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  170. <attribute name="id" optional="YES" attributeType="String"/>
  171. <attribute name="indefinite" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  172. <attribute name="isf" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
  173. <attribute name="isfAndCr" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  174. <attribute name="isPreset" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  175. <attribute name="percentage" optional="YES" attributeType="Double" defaultValueString="100" usesScalarValueType="YES"/>
  176. <attribute name="smbIsAlwaysOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  177. <attribute name="smbIsOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  178. <attribute name="smbMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
  179. <attribute name="start" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  180. <attribute name="target" optional="YES" attributeType="Decimal" defaultValueString="100"/>
  181. <attribute name="uamMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
  182. <fetchIndex name="byDate">
  183. <fetchIndexElement property="date" type="Binary" order="descending"/>
  184. </fetchIndex>
  185. </entity>
  186. <entity name="OverridePresets" representedClassName="OverridePresets" syncable="YES">
  187. <attribute name="advancedSettings" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  188. <attribute name="cr" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
  189. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  190. <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  191. <attribute name="end" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  192. <attribute name="id" optional="YES" attributeType="String"/>
  193. <attribute name="indefinite" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  194. <attribute name="isf" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
  195. <attribute name="isfAndCr" optional="YES" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
  196. <attribute name="name" optional="YES" attributeType="String"/>
  197. <attribute name="percentage" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  198. <attribute name="smbIsAlwaysOff" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  199. <attribute name="smbIsOff" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
  200. <attribute name="smbMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
  201. <attribute name="start" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  202. <attribute name="target" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  203. <attribute name="uamMinutes" optional="YES" attributeType="Decimal" defaultValueString="30"/>
  204. </entity>
  205. <entity name="Presets" representedClassName="Presets" syncable="YES">
  206. <attribute name="carbs" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  207. <attribute name="dish" optional="YES" attributeType="String"/>
  208. <attribute name="fat" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  209. <attribute name="protein" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  210. </entity>
  211. <entity name="Protein" representedClassName="Protein" syncable="YES">
  212. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  213. <attribute name="enteredBy" optional="YES" attributeType="String"/>
  214. <attribute name="protein" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  215. </entity>
  216. <entity name="StatsData" representedClassName="StatsData" syncable="YES">
  217. <attribute name="lastrun" attributeType="Date" defaultDateTimeInterval="704497620" usesScalarValueType="NO"/>
  218. </entity>
  219. <entity name="Target" representedClassName="Target" syncable="YES">
  220. <attribute name="current" optional="YES" attributeType="Decimal" defaultValueString="100"/>
  221. </entity>
  222. <entity name="TDD" representedClassName="TDD" syncable="YES">
  223. <attribute name="tdd" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  224. <attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  225. <relationship name="computed" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Oref0Suggestion" inverseName="computedTDD" inverseEntity="Oref0Suggestion"/>
  226. <fetchIndex name="byDate">
  227. <fetchIndexElement property="timestamp" type="Binary" order="ascending"/>
  228. </fetchIndex>
  229. </entity>
  230. <entity name="TempTargets" representedClassName="TempTargets" syncable="YES">
  231. <attribute name="active" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  232. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  233. <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  234. <attribute name="hbt" optional="YES" attributeType="Double" defaultValueString="160" usesScalarValueType="YES"/>
  235. <attribute name="id" optional="YES" attributeType="String"/>
  236. <attribute name="startDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  237. <fetchIndex name="byDate">
  238. <fetchIndexElement property="date" type="Binary" order="descending"/>
  239. </fetchIndex>
  240. </entity>
  241. <entity name="TempTargetsSlider" representedClassName="TempTargetsSlider" syncable="YES">
  242. <attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
  243. <attribute name="defaultHBT" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
  244. <attribute name="duration" optional="YES" attributeType="Decimal" defaultValueString="0.0"/>
  245. <attribute name="enabled" optional="YES" attributeType="Boolean" defaultValueString="100" usesScalarValueType="YES"/>
  246. <attribute name="hbt" optional="YES" attributeType="Double" defaultValueString="160" usesScalarValueType="YES"/>
  247. <attribute name="id" optional="YES" attributeType="String" defaultValueString="empy"/>
  248. <attribute name="isPreset" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
  249. <fetchIndex name="byDate">
  250. <fetchIndexElement property="date" type="Binary" order="descending"/>
  251. </fetchIndex>
  252. </entity>
  253. </model>