Ble/app/schemas/llc.arma.ble.data.db.AppDat.../1.json

94 lines
2.6 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "a33b72c15753bfa9fa1ef7943ba2ab5f",
"entities": [
{
"tableName": "rotation",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bleId` TEXT NOT NULL, `date` INTEGER NOT NULL, `rotations` INTEGER NOT NULL, PRIMARY KEY(`bleId`, `date`))",
"fields": [
{
"fieldPath": "bleId",
"columnName": "bleId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "date",
"columnName": "date",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "rotations",
"columnName": "rotations",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"bleId",
"date"
]
},
"indices": [
{
"name": "index_rotation_bleId_date",
"unique": true,
"columnNames": [
"bleId",
"date"
],
"orders": [],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_rotation_bleId_date` ON `${TABLE_NAME}` (`bleId`, `date`)"
}
],
"foreignKeys": []
},
{
"tableName": "wheel",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bleId` TEXT NOT NULL, `radius` INTEGER NOT NULL, PRIMARY KEY(`bleId`))",
"fields": [
{
"fieldPath": "bleId",
"columnName": "bleId",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "radius",
"columnName": "radius",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"bleId"
]
},
"indices": [
{
"name": "index_wheel_bleId",
"unique": true,
"columnNames": [
"bleId"
],
"orders": [],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_wheel_bleId` ON `${TABLE_NAME}` (`bleId`)"
}
],
"foreignKeys": []
}
],
"views": [],
"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, 'a33b72c15753bfa9fa1ef7943ba2ab5f')"
]
}
}