2021-03-22 16:59:09 +01:00
{
"formatVersion" : 1 ,
"database" : {
"version" : 8 ,
2021-03-30 19:37:26 +02:00
"identityHash" : "dab6024e846ee68708e8cfc047c39662" ,
2021-03-22 16:59:09 +01:00
"entities" : [
{
"tableName" : "apsResults" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `algorithm` TEXT NOT NULL, `glucoseStatusJson` TEXT NOT NULL, `currentTempJson` TEXT NOT NULL, `iobDataJson` TEXT NOT NULL, `profileJson` TEXT NOT NULL, `autosensDataJson` TEXT, `mealDataJson` TEXT NOT NULL, `isMicroBolusAllowed` INTEGER, `resultJson` TEXT NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `apsResults`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "algorithm" ,
"columnName" : "algorithm" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "glucoseStatusJson" ,
"columnName" : "glucoseStatusJson" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "currentTempJson" ,
"columnName" : "currentTempJson" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "iobDataJson" ,
"columnName" : "iobDataJson" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "profileJson" ,
"columnName" : "profileJson" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "autosensDataJson" ,
"columnName" : "autosensDataJson" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "mealDataJson" ,
"columnName" : "mealDataJson" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "isMicroBolusAllowed" ,
"columnName" : "isMicroBolusAllowed" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "resultJson" ,
"columnName" : "resultJson" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_apsResults_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_apsResults_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_apsResults_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_apsResults_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "apsResults" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "boluses" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `amount` REAL NOT NULL, `type` TEXT NOT NULL, `isBasalInsulin` INTEGER NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, `insulinLabel` TEXT, `insulinEndTime` INTEGER, `peak` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `boluses`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "amount" ,
"columnName" : "amount" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "type" ,
"columnName" : "type" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "isBasalInsulin" ,
"columnName" : "isBasalInsulin" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "insulinConfiguration.insulinLabel" ,
"columnName" : "insulinLabel" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "insulinConfiguration.insulinEndTime" ,
"columnName" : "insulinEndTime" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "insulinConfiguration.peak" ,
"columnName" : "peak" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_boluses_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_boluses_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_boluses_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_boluses_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "boluses" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "bolusCalculatorResults" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `targetBGLow` REAL NOT NULL, `targetBGHigh` REAL NOT NULL, `isf` REAL NOT NULL, `ic` REAL NOT NULL, `bolusIOB` REAL NOT NULL, `wasBolusIOBUsed` INTEGER NOT NULL, `basalIOB` REAL NOT NULL, `wasBasalIOBUsed` INTEGER NOT NULL, `glucoseValue` REAL NOT NULL, `wasGlucoseUsed` INTEGER NOT NULL, `glucoseDifference` REAL NOT NULL, `glucoseInsulin` REAL NOT NULL, `glucoseTrend` REAL NOT NULL, `wasTrendUsed` INTEGER NOT NULL, `trendInsulin` REAL NOT NULL, `cob` REAL NOT NULL, `wasCOBUsed` INTEGER NOT NULL, `cobInsulin` REAL NOT NULL, `carbs` REAL NOT NULL, `wereCarbsUsed` INTEGER NOT NULL, `carbsInsulin` REAL NOT NULL, `otherCorrection` REAL NOT NULL, `wasSuperbolusUsed` INTEGER NOT NULL, `superbolusInsulin` REAL NOT NULL, `wasTempTargetUsed` INTEGER NOT NULL, `totalInsulin` REAL NOT NULL, `percentageCorrection` INTEGER NOT NULL, `profileName` TEXT NOT NULL, `note` TEXT NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `bolusCalculatorResults`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "targetBGLow" ,
"columnName" : "targetBGLow" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "targetBGHigh" ,
"columnName" : "targetBGHigh" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "isf" ,
"columnName" : "isf" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "ic" ,
"columnName" : "ic" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "bolusIOB" ,
"columnName" : "bolusIOB" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasBolusIOBUsed" ,
"columnName" : "wasBolusIOBUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "basalIOB" ,
"columnName" : "basalIOB" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasBasalIOBUsed" ,
"columnName" : "wasBasalIOBUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "glucoseValue" ,
"columnName" : "glucoseValue" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasGlucoseUsed" ,
"columnName" : "wasGlucoseUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "glucoseDifference" ,
"columnName" : "glucoseDifference" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "glucoseInsulin" ,
"columnName" : "glucoseInsulin" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "glucoseTrend" ,
"columnName" : "glucoseTrend" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasTrendUsed" ,
"columnName" : "wasTrendUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "trendInsulin" ,
"columnName" : "trendInsulin" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "cob" ,
"columnName" : "cob" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasCOBUsed" ,
"columnName" : "wasCOBUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "cobInsulin" ,
"columnName" : "cobInsulin" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "carbs" ,
"columnName" : "carbs" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wereCarbsUsed" ,
"columnName" : "wereCarbsUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "carbsInsulin" ,
"columnName" : "carbsInsulin" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "otherCorrection" ,
"columnName" : "otherCorrection" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasSuperbolusUsed" ,
"columnName" : "wasSuperbolusUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "superbolusInsulin" ,
"columnName" : "superbolusInsulin" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "wasTempTargetUsed" ,
"columnName" : "wasTempTargetUsed" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "totalInsulin" ,
"columnName" : "totalInsulin" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "percentageCorrection" ,
"columnName" : "percentageCorrection" ,
2021-03-25 17:48:07 +01:00
"affinity" : "INTEGER" ,
2021-03-22 16:59:09 +01:00
"notNull" : true
} ,
{
"fieldPath" : "profileName" ,
"columnName" : "profileName" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
2021-03-25 23:52:08 +01:00
{
"fieldPath" : "note" ,
"columnName" : "note" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_bolusCalculatorResults_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_bolusCalculatorResults_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_bolusCalculatorResults_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_bolusCalculatorResults_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "bolusCalculatorResults" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "carbs" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `amount` REAL NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `carbs`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "amount" ,
"columnName" : "amount" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_carbs_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_carbs_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_carbs_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_carbs_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "carbs" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "effectiveProfileSwitches" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `basalBlocks` TEXT NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `effectiveProfileSwitches`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "basalBlocks" ,
"columnName" : "basalBlocks" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_effectiveProfileSwitches_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_effectiveProfileSwitches_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_effectiveProfileSwitches_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_effectiveProfileSwitches_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "effectiveProfileSwitches" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "extendedBoluses" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `amount` REAL NOT NULL, `isEmulatingTempBasal` INTEGER NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `extendedBoluses`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "amount" ,
"columnName" : "amount" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "isEmulatingTempBasal" ,
"columnName" : "isEmulatingTempBasal" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_extendedBoluses_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_extendedBoluses_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_extendedBoluses_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_extendedBoluses_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "extendedBoluses" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "glucoseValues" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `raw` REAL, `value` REAL NOT NULL, `trendArrow` TEXT NOT NULL, `noise` REAL, `sourceSensor` TEXT NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `glucoseValues`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "raw" ,
"columnName" : "raw" ,
"affinity" : "REAL" ,
"notNull" : false
} ,
{
"fieldPath" : "value" ,
"columnName" : "value" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "trendArrow" ,
"columnName" : "trendArrow" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "noise" ,
"columnName" : "noise" ,
"affinity" : "REAL" ,
"notNull" : false
} ,
{
"fieldPath" : "sourceSensor" ,
"columnName" : "sourceSensor" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_glucoseValues_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_glucoseValues_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_glucoseValues_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_glucoseValues_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "glucoseValues" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "profileSwitches" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `profileName` TEXT NOT NULL, `glucoseUnit` TEXT NOT NULL, `basalBlocks` TEXT NOT NULL, `isfBlocks` TEXT NOT NULL, `icBlocks` TEXT NOT NULL, `targetBlocks` TEXT NOT NULL, `timeshift` INTEGER NOT NULL, `percentage` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, `insulinLabel` TEXT NOT NULL, `insulinEndTime` INTEGER NOT NULL, `peak` INTEGER NOT NULL, FOREIGN KEY(`referenceId`) REFERENCES `profileSwitches`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "profileName" ,
"columnName" : "profileName" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "glucoseUnit" ,
"columnName" : "glucoseUnit" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "basalBlocks" ,
"columnName" : "basalBlocks" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "isfBlocks" ,
"columnName" : "isfBlocks" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "icBlocks" ,
"columnName" : "icBlocks" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "targetBlocks" ,
"columnName" : "targetBlocks" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "timeshift" ,
"columnName" : "timeshift" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "percentage" ,
"columnName" : "percentage" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "insulinConfiguration.insulinLabel" ,
"columnName" : "insulinLabel" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "insulinConfiguration.insulinEndTime" ,
"columnName" : "insulinEndTime" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "insulinConfiguration.peak" ,
"columnName" : "peak" ,
"affinity" : "INTEGER" ,
"notNull" : true
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_profileSwitches_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_profileSwitches_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_profileSwitches_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_profileSwitches_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "profileSwitches" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "temporaryBasals" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `type` TEXT NOT NULL, `isAbsolute` INTEGER NOT NULL, `rate` REAL NOT NULL, `duration` INTEGER NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `temporaryBasals`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "type" ,
"columnName" : "type" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "isAbsolute" ,
"columnName" : "isAbsolute" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "rate" ,
"columnName" : "rate" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_temporaryBasals_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_temporaryBasals_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_temporaryBasals_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_temporaryBasals_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "temporaryBasals" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "temporaryTargets" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `reason` TEXT NOT NULL, `highTarget` REAL NOT NULL, `lowTarget` REAL NOT NULL, `duration` INTEGER NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `temporaryTargets`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "reason" ,
"columnName" : "reason" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "highTarget" ,
"columnName" : "highTarget" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "lowTarget" ,
"columnName" : "lowTarget" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_temporaryTargets_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_temporaryTargets_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_temporaryTargets_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_temporaryTargets_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "temporaryTargets" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "therapyEvents" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `duration` INTEGER NOT NULL, `type` TEXT NOT NULL, `note` TEXT, `enteredBy` TEXT, `glucose` REAL, `glucoseType` TEXT, `glucoseUnit` TEXT NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `therapyEvents`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "duration" ,
"columnName" : "duration" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "type" ,
"columnName" : "type" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "note" ,
"columnName" : "note" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "enteredBy" ,
"columnName" : "enteredBy" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "glucose" ,
"columnName" : "glucose" ,
"affinity" : "REAL" ,
"notNull" : false
} ,
{
"fieldPath" : "glucoseType" ,
"columnName" : "glucoseType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "glucoseUnit" ,
"columnName" : "glucoseUnit" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_therapyEvents_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_therapyEvents_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_therapyEvents_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_therapyEvents_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "therapyEvents" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "totalDailyDoses" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `basalAmount` REAL, `bolusAmount` REAL, `totalAmount` REAL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `totalDailyDoses`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "basalAmount" ,
"columnName" : "basalAmount" ,
"affinity" : "REAL" ,
"notNull" : false
} ,
{
"fieldPath" : "bolusAmount" ,
"columnName" : "bolusAmount" ,
"affinity" : "REAL" ,
"notNull" : false
} ,
{
"fieldPath" : "totalAmount" ,
"columnName" : "totalAmount" ,
"affinity" : "REAL" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_totalDailyDoses_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_totalDailyDoses_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_totalDailyDoses_timestamp" ,
"unique" : false ,
"columnNames" : [
"timestamp"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_totalDailyDoses_timestamp` ON `${TABLE_NAME}` (`timestamp`)"
}
] ,
"foreignKeys" : [
{
"table" : "totalDailyDoses" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "apsResultLinks" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `apsResultId` INTEGER NOT NULL, `smbId` INTEGER, `tbrId` INTEGER, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`apsResultId`) REFERENCES `apsResults`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`smbId`) REFERENCES `boluses`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`tbrId`) REFERENCES `temporaryBasals`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`referenceId`) REFERENCES `apsResultLinks`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "apsResultId" ,
"columnName" : "apsResultId" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "smbId" ,
"columnName" : "smbId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "tbrId" ,
"columnName" : "tbrId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_apsResultLinks_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_apsResultLinks_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_apsResultLinks_apsResultId" ,
"unique" : false ,
"columnNames" : [
"apsResultId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_apsResultLinks_apsResultId` ON `${TABLE_NAME}` (`apsResultId`)"
} ,
{
"name" : "index_apsResultLinks_smbId" ,
"unique" : false ,
"columnNames" : [
"smbId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_apsResultLinks_smbId` ON `${TABLE_NAME}` (`smbId`)"
} ,
{
"name" : "index_apsResultLinks_tbrId" ,
"unique" : false ,
"columnNames" : [
"tbrId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_apsResultLinks_tbrId` ON `${TABLE_NAME}` (`tbrId`)"
}
] ,
"foreignKeys" : [
{
"table" : "apsResults" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"apsResultId"
] ,
"referencedColumns" : [
"id"
]
} ,
{
"table" : "boluses" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"smbId"
] ,
"referencedColumns" : [
"id"
]
} ,
{
"table" : "temporaryBasals" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"tbrId"
] ,
"referencedColumns" : [
"id"
]
} ,
{
"table" : "apsResultLinks" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "multiwaveBolusLinks" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `bolusId` INTEGER NOT NULL, `extendedBolusId` INTEGER NOT NULL, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`bolusId`) REFERENCES `boluses`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`extendedBolusId`) REFERENCES `extendedBoluses`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`referenceId`) REFERENCES `multiwaveBolusLinks`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "bolusId" ,
"columnName" : "bolusId" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "extendedBolusId" ,
"columnName" : "extendedBolusId" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_multiwaveBolusLinks_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_multiwaveBolusLinks_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
} ,
{
"name" : "index_multiwaveBolusLinks_bolusId" ,
"unique" : false ,
"columnNames" : [
"bolusId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_multiwaveBolusLinks_bolusId` ON `${TABLE_NAME}` (`bolusId`)"
} ,
{
"name" : "index_multiwaveBolusLinks_extendedBolusId" ,
"unique" : false ,
"columnNames" : [
"extendedBolusId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_multiwaveBolusLinks_extendedBolusId` ON `${TABLE_NAME}` (`extendedBolusId`)"
}
] ,
"foreignKeys" : [
{
"table" : "boluses" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"bolusId"
] ,
"referencedColumns" : [
"id"
]
} ,
{
"table" : "extendedBoluses" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"extendedBolusId"
] ,
"referencedColumns" : [
"id"
]
} ,
{
"table" : "multiwaveBolusLinks" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
} ,
{
"tableName" : "preferenceChanges" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `key` TEXT NOT NULL, `value` TEXT)" ,
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "key" ,
"columnName" : "key" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "value" ,
"columnName" : "value" ,
"affinity" : "TEXT" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
} ,
{
"tableName" : "versionChanges" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `versionCode` INTEGER NOT NULL, `versionName` TEXT NOT NULL, `gitRemote` TEXT, `commitHash` TEXT)" ,
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "versionCode" ,
"columnName" : "versionCode" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "versionName" ,
"columnName" : "versionName" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "gitRemote" ,
"columnName" : "gitRemote" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "commitHash" ,
"columnName" : "commitHash" ,
"affinity" : "TEXT" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
} ,
{
"tableName" : "userEntry" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `timestamp` INTEGER NOT NULL, `utcOffset` INTEGER NOT NULL, `action` TEXT NOT NULL, `s` TEXT NOT NULL, `values` TEXT NOT NULL)" ,
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "utcOffset" ,
"columnName" : "utcOffset" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "action" ,
"columnName" : "action" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "s" ,
"columnName" : "s" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "values" ,
"columnName" : "values" ,
"affinity" : "TEXT" ,
"notNull" : true
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
} ,
{
"tableName" : "foods" ,
2021-03-30 19:37:26 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `version` INTEGER NOT NULL, `dateCreated` INTEGER NOT NULL, `isValid` INTEGER NOT NULL, `referenceId` INTEGER, `name` TEXT NOT NULL, `category` TEXT, `subCategory` TEXT, `portion` REAL NOT NULL, `carbs` INTEGER NOT NULL, `fat` INTEGER, `protein` INTEGER, `energy` INTEGER, `unit` TEXT NOT NULL, `gi` INTEGER, `nightscoutSystemId` TEXT, `nightscoutId` TEXT, `pumpType` TEXT, `pumpSerial` TEXT, `temporaryId` INTEGER, `pumpId` INTEGER, `startId` INTEGER, `endId` INTEGER, FOREIGN KEY(`referenceId`) REFERENCES `foods`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )" ,
2021-03-22 16:59:09 +01:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "dateCreated" ,
"columnName" : "dateCreated" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isValid" ,
"columnName" : "isValid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "referenceId" ,
"columnName" : "referenceId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "name" ,
"columnName" : "name" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "category" ,
"columnName" : "category" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "subCategory" ,
"columnName" : "subCategory" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "portion" ,
"columnName" : "portion" ,
"affinity" : "REAL" ,
"notNull" : true
} ,
{
"fieldPath" : "carbs" ,
"columnName" : "carbs" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "fat" ,
"columnName" : "fat" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "protein" ,
"columnName" : "protein" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "energy" ,
"columnName" : "energy" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "unit" ,
"columnName" : "unit" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "gi" ,
"columnName" : "gi" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutSystemId" ,
"columnName" : "nightscoutSystemId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.nightscoutId" ,
"columnName" : "nightscoutId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpType" ,
"columnName" : "pumpType" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.pumpSerial" ,
"columnName" : "pumpSerial" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
2021-03-30 19:37:26 +02:00
{
"fieldPath" : "interfaceIDs_backing.temporaryId" ,
"columnName" : "temporaryId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2021-03-22 16:59:09 +01:00
{
"fieldPath" : "interfaceIDs_backing.pumpId" ,
"columnName" : "pumpId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.startId" ,
"columnName" : "startId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "interfaceIDs_backing.endId" ,
"columnName" : "endId" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [
{
"name" : "index_foods_referenceId" ,
"unique" : false ,
"columnNames" : [
"referenceId"
] ,
"createSql" : "CREATE INDEX IF NOT EXISTS `index_foods_referenceId` ON `${TABLE_NAME}` (`referenceId`)"
}
] ,
"foreignKeys" : [
{
"table" : "foods" ,
"onDelete" : "NO ACTION" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"referenceId"
] ,
"referencedColumns" : [
"id"
]
}
]
}
] ,
"views" : [ ] ,
"setupQueries" : [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)" ,
2021-03-30 19:37:26 +02:00
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'dab6024e846ee68708e8cfc047c39662')"
2021-03-22 16:59:09 +01:00
]
}
}