{ "formatVersion": 1, "database": { "version": 4, "identityHash": "61f9a5dd091c3aa54f5dee1a562c6d2d", "entities": [ { "tableName": "updates", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` BLOB NOT NULL, `scope_key` TEXT NOT NULL, `commit_time` INTEGER NOT NULL, `runtime_version` TEXT NOT NULL, `launch_asset_id` INTEGER, `metadata` TEXT, `status` INTEGER NOT NULL, `keep` INTEGER NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`launch_asset_id`) REFERENCES `assets`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "BLOB", "notNull": true }, { "fieldPath": "scopeKey", "columnName": "scope_key", "affinity": "TEXT", "notNull": true }, { "fieldPath": "commitTime", "columnName": "commit_time", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "runtimeVersion", "columnName": "runtime_version", "affinity": "TEXT", "notNull": true }, { "fieldPath": "launchAssetId", "columnName": "launch_asset_id", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "metadata", "columnName": "metadata", "affinity": "TEXT", "notNull": false }, { "fieldPath": "status", "columnName": "status", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "keep", "columnName": "keep", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": false }, "indices": [ { "name": "index_updates_launch_asset_id", "unique": false, "columnNames": [ "launch_asset_id" ], "createSql": "CREATE INDEX `index_updates_launch_asset_id` ON `${TABLE_NAME}` (`launch_asset_id`)" }, { "name": "index_updates_scope_key_commit_time", "unique": true, "columnNames": [ "scope_key", "commit_time" ], "createSql": "CREATE UNIQUE INDEX `index_updates_scope_key_commit_time` ON `${TABLE_NAME}` (`scope_key`, `commit_time`)" } ], "foreignKeys": [ { "table": "assets", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "launch_asset_id" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "updates_assets", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`update_id` BLOB NOT NULL, `asset_id` INTEGER NOT NULL, PRIMARY KEY(`update_id`, `asset_id`), FOREIGN KEY(`update_id`) REFERENCES `updates`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`asset_id`) REFERENCES `assets`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "updateId", "columnName": "update_id", "affinity": "BLOB", "notNull": true }, { "fieldPath": "assetId", "columnName": "asset_id", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "update_id", "asset_id" ], "autoGenerate": false }, "indices": [ { "name": "index_updates_assets_asset_id", "unique": false, "columnNames": [ "asset_id" ], "createSql": "CREATE INDEX `index_updates_assets_asset_id` ON `${TABLE_NAME}` (`asset_id`)" } ], "foreignKeys": [ { "table": "updates", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "update_id" ], "referencedColumns": [ "id" ] }, { "table": "assets", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "asset_id" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "assets", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT, `key` TEXT NOT NULL, `headers` TEXT, `type` TEXT NOT NULL, `metadata` TEXT, `download_time` INTEGER, `relative_path` TEXT, `hash` BLOB, `hash_type` INTEGER NOT NULL, `marked_for_deletion` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "url", "columnName": "url", "affinity": "TEXT", "notNull": false }, { "fieldPath": "key", "columnName": "key", "affinity": "TEXT", "notNull": true }, { "fieldPath": "headers", "columnName": "headers", "affinity": "TEXT", "notNull": false }, { "fieldPath": "type", "columnName": "type", "affinity": "TEXT", "notNull": true }, { "fieldPath": "metadata", "columnName": "metadata", "affinity": "TEXT", "notNull": false }, { "fieldPath": "downloadTime", "columnName": "download_time", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "relativePath", "columnName": "relative_path", "affinity": "TEXT", "notNull": false }, { "fieldPath": "hash", "columnName": "hash", "affinity": "BLOB", "notNull": false }, { "fieldPath": "hashType", "columnName": "hash_type", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "markedForDeletion", "columnName": "marked_for_deletion", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": true }, "indices": [ { "name": "index_assets_key", "unique": true, "columnNames": [ "key" ], "createSql": "CREATE UNIQUE INDEX `index_assets_key` ON `${TABLE_NAME}` (`key`)" } ], "foreignKeys": [] }, { "tableName": "json_data", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `key` TEXT NOT NULL, `value` TEXT NOT NULL, `last_updated` INTEGER NOT NULL, `scope_key` TEXT NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "key", "columnName": "key", "affinity": "TEXT", "notNull": true }, { "fieldPath": "value", "columnName": "value", "affinity": "TEXT", "notNull": true }, { "fieldPath": "lastUpdated", "columnName": "last_updated", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "scopeKey", "columnName": "scope_key", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": true }, "indices": [ { "name": "index_json_data_scope_key", "unique": false, "columnNames": [ "scope_key" ], "createSql": "CREATE INDEX `index_json_data_scope_key` ON `${TABLE_NAME}` (`scope_key`)" } ], "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, '61f9a5dd091c3aa54f5dee1a562c6d2d')" ] } }