Commit fcb02768 authored by Joey's avatar Joey

core: remove duplicated db schema

Signed-off-by: Joey's avatarJoey <bevilacquajoey@gmail.com>
parent 6b4b2a91
{
"formatVersion": 1,
"database": {
"version": 4,
"identityHash": "25ea6bdf68db073474ca9c99195c501d",
"entities": [
{
"tableName": "glucose",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `value` INTEGER NOT NULL, `date` INTEGER NOT NULL, `insulinId0` INTEGER NOT NULL, `insulinValue0` REAL NOT NULL, `insulinId1` INTEGER NOT NULL, `insulinValue1` REAL NOT NULL, `eatLevel` INTEGER NOT NULL, `timeFrame` INTEGER NOT NULL)",
"fields": [
{
"fieldPath": "uid",
"columnName": "uid",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "value",
"columnName": "value",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "date",
"columnName": "date",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "insulinId0",
"columnName": "insulinId0",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "insulinValue0",
"columnName": "insulinValue0",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "insulinId1",
"columnName": "insulinId1",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "insulinValue1",
"columnName": "insulinValue1",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "eatLevel",
"columnName": "eatLevel",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "timeFrame",
"columnName": "timeFrame",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"uid"
],
"autoGenerate": true
},
"indices": [
{
"name": "index_glucose_date_uid",
"unique": true,
"columnNames": [
"date",
"uid"
],
"createSql": "CREATE UNIQUE INDEX `index_glucose_date_uid` ON `${TABLE_NAME}` (`date`, `uid`)"
}
],
"foreignKeys": []
},
{
"tableName": "insulin",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `timeFrame` INTEGER NOT NULL, `isBasal` INTEGER NOT NULL, `hasHalfUnits` INTEGER NOT NULL)",
"fields": [
{
"fieldPath": "uid",
"columnName": "uid",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "timeFrame",
"columnName": "timeFrame",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "isBasal",
"columnName": "isBasal",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "hasHalfUnits",
"columnName": "hasHalfUnits",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"uid"
],
"autoGenerate": true
},
"indices": [],
"foreignKeys": []
}
],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"25ea6bdf68db073474ca9c99195c501d\")"
]
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment