From 80bf7197e703b4db3a283565b99cf60dc0c7d53c Mon Sep 17 00:00:00 2001 From: Vineyro Date: Thu, 1 Aug 2024 11:11:22 +0700 Subject: [PATCH] database 1 version --- .../llc.arma.ble.data.db.AppDatabase/1.json | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 app/schemas/llc.arma.ble.data.db.AppDatabase/1.json diff --git a/app/schemas/llc.arma.ble.data.db.AppDatabase/1.json b/app/schemas/llc.arma.ble.data.db.AppDatabase/1.json new file mode 100644 index 0000000..4131452 --- /dev/null +++ b/app/schemas/llc.arma.ble.data.db.AppDatabase/1.json @@ -0,0 +1,94 @@ +{ + "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')" + ] + } +} \ No newline at end of file