From 4af22a7cdf96633faa951961c67efc4cc7ed9f4f Mon Sep 17 00:00:00 2001 From: Vineyro Date: Thu, 1 Aug 2024 16:47:59 +0700 Subject: [PATCH] host table sync --- .../llc.arma.ble.data.db.AppDatabase/2.json | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 app/schemas/llc.arma.ble.data.db.AppDatabase/2.json diff --git a/app/schemas/llc.arma.ble.data.db.AppDatabase/2.json b/app/schemas/llc.arma.ble.data.db.AppDatabase/2.json new file mode 100644 index 0000000..5b0f919 --- /dev/null +++ b/app/schemas/llc.arma.ble.data.db.AppDatabase/2.json @@ -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')" + ] + } +} \ No newline at end of file