host table sync

This commit is contained in:
Vineyro 2024-08-01 16:47:59 +07:00
parent 217281b579
commit 4af22a7cdf
1 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1,130 @@
{
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "d3b621577b39b412a9fc502ff480020d",
"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": []
},
{
"tableName": "ble_name",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`serial` TEXT NOT NULL, `name` TEXT NOT NULL, PRIMARY KEY(`serial`))",
"fields": [
{
"fieldPath": "serial",
"columnName": "serial",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"serial"
]
},
"indices": [
{
"name": "index_ble_name_serial",
"unique": true,
"columnNames": [
"serial"
],
"orders": [],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_ble_name_serial` ON `${TABLE_NAME}` (`serial`)"
}
],
"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, 'd3b621577b39b412a9fc502ff480020d')"
]
}
}