1{ 2 "formatVersion": 1, 3 "database": { 4 "version": 4, 5 "identityHash": "61f9a5dd091c3aa54f5dee1a562c6d2d", 6 "entities": [ 7 { 8 "tableName": "updates", 9 "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 )", 10 "fields": [ 11 { 12 "fieldPath": "id", 13 "columnName": "id", 14 "affinity": "BLOB", 15 "notNull": true 16 }, 17 { 18 "fieldPath": "scopeKey", 19 "columnName": "scope_key", 20 "affinity": "TEXT", 21 "notNull": true 22 }, 23 { 24 "fieldPath": "commitTime", 25 "columnName": "commit_time", 26 "affinity": "INTEGER", 27 "notNull": true 28 }, 29 { 30 "fieldPath": "runtimeVersion", 31 "columnName": "runtime_version", 32 "affinity": "TEXT", 33 "notNull": true 34 }, 35 { 36 "fieldPath": "launchAssetId", 37 "columnName": "launch_asset_id", 38 "affinity": "INTEGER", 39 "notNull": false 40 }, 41 { 42 "fieldPath": "metadata", 43 "columnName": "metadata", 44 "affinity": "TEXT", 45 "notNull": false 46 }, 47 { 48 "fieldPath": "status", 49 "columnName": "status", 50 "affinity": "INTEGER", 51 "notNull": true 52 }, 53 { 54 "fieldPath": "keep", 55 "columnName": "keep", 56 "affinity": "INTEGER", 57 "notNull": true 58 } 59 ], 60 "primaryKey": { 61 "columnNames": [ 62 "id" 63 ], 64 "autoGenerate": false 65 }, 66 "indices": [ 67 { 68 "name": "index_updates_launch_asset_id", 69 "unique": false, 70 "columnNames": [ 71 "launch_asset_id" 72 ], 73 "createSql": "CREATE INDEX `index_updates_launch_asset_id` ON `${TABLE_NAME}` (`launch_asset_id`)" 74 }, 75 { 76 "name": "index_updates_scope_key_commit_time", 77 "unique": true, 78 "columnNames": [ 79 "scope_key", 80 "commit_time" 81 ], 82 "createSql": "CREATE UNIQUE INDEX `index_updates_scope_key_commit_time` ON `${TABLE_NAME}` (`scope_key`, `commit_time`)" 83 } 84 ], 85 "foreignKeys": [ 86 { 87 "table": "assets", 88 "onDelete": "CASCADE", 89 "onUpdate": "NO ACTION", 90 "columns": [ 91 "launch_asset_id" 92 ], 93 "referencedColumns": [ 94 "id" 95 ] 96 } 97 ] 98 }, 99 { 100 "tableName": "updates_assets", 101 "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 )", 102 "fields": [ 103 { 104 "fieldPath": "updateId", 105 "columnName": "update_id", 106 "affinity": "BLOB", 107 "notNull": true 108 }, 109 { 110 "fieldPath": "assetId", 111 "columnName": "asset_id", 112 "affinity": "INTEGER", 113 "notNull": true 114 } 115 ], 116 "primaryKey": { 117 "columnNames": [ 118 "update_id", 119 "asset_id" 120 ], 121 "autoGenerate": false 122 }, 123 "indices": [ 124 { 125 "name": "index_updates_assets_asset_id", 126 "unique": false, 127 "columnNames": [ 128 "asset_id" 129 ], 130 "createSql": "CREATE INDEX `index_updates_assets_asset_id` ON `${TABLE_NAME}` (`asset_id`)" 131 } 132 ], 133 "foreignKeys": [ 134 { 135 "table": "updates", 136 "onDelete": "CASCADE", 137 "onUpdate": "NO ACTION", 138 "columns": [ 139 "update_id" 140 ], 141 "referencedColumns": [ 142 "id" 143 ] 144 }, 145 { 146 "table": "assets", 147 "onDelete": "CASCADE", 148 "onUpdate": "NO ACTION", 149 "columns": [ 150 "asset_id" 151 ], 152 "referencedColumns": [ 153 "id" 154 ] 155 } 156 ] 157 }, 158 { 159 "tableName": "assets", 160 "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)", 161 "fields": [ 162 { 163 "fieldPath": "id", 164 "columnName": "id", 165 "affinity": "INTEGER", 166 "notNull": true 167 }, 168 { 169 "fieldPath": "url", 170 "columnName": "url", 171 "affinity": "TEXT", 172 "notNull": false 173 }, 174 { 175 "fieldPath": "key", 176 "columnName": "key", 177 "affinity": "TEXT", 178 "notNull": true 179 }, 180 { 181 "fieldPath": "headers", 182 "columnName": "headers", 183 "affinity": "TEXT", 184 "notNull": false 185 }, 186 { 187 "fieldPath": "type", 188 "columnName": "type", 189 "affinity": "TEXT", 190 "notNull": true 191 }, 192 { 193 "fieldPath": "metadata", 194 "columnName": "metadata", 195 "affinity": "TEXT", 196 "notNull": false 197 }, 198 { 199 "fieldPath": "downloadTime", 200 "columnName": "download_time", 201 "affinity": "INTEGER", 202 "notNull": false 203 }, 204 { 205 "fieldPath": "relativePath", 206 "columnName": "relative_path", 207 "affinity": "TEXT", 208 "notNull": false 209 }, 210 { 211 "fieldPath": "hash", 212 "columnName": "hash", 213 "affinity": "BLOB", 214 "notNull": false 215 }, 216 { 217 "fieldPath": "hashType", 218 "columnName": "hash_type", 219 "affinity": "INTEGER", 220 "notNull": true 221 }, 222 { 223 "fieldPath": "markedForDeletion", 224 "columnName": "marked_for_deletion", 225 "affinity": "INTEGER", 226 "notNull": true 227 } 228 ], 229 "primaryKey": { 230 "columnNames": [ 231 "id" 232 ], 233 "autoGenerate": true 234 }, 235 "indices": [ 236 { 237 "name": "index_assets_key", 238 "unique": true, 239 "columnNames": [ 240 "key" 241 ], 242 "createSql": "CREATE UNIQUE INDEX `index_assets_key` ON `${TABLE_NAME}` (`key`)" 243 } 244 ], 245 "foreignKeys": [] 246 }, 247 { 248 "tableName": "json_data", 249 "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)", 250 "fields": [ 251 { 252 "fieldPath": "id", 253 "columnName": "id", 254 "affinity": "INTEGER", 255 "notNull": true 256 }, 257 { 258 "fieldPath": "key", 259 "columnName": "key", 260 "affinity": "TEXT", 261 "notNull": true 262 }, 263 { 264 "fieldPath": "value", 265 "columnName": "value", 266 "affinity": "TEXT", 267 "notNull": true 268 }, 269 { 270 "fieldPath": "lastUpdated", 271 "columnName": "last_updated", 272 "affinity": "INTEGER", 273 "notNull": true 274 }, 275 { 276 "fieldPath": "scopeKey", 277 "columnName": "scope_key", 278 "affinity": "TEXT", 279 "notNull": true 280 } 281 ], 282 "primaryKey": { 283 "columnNames": [ 284 "id" 285 ], 286 "autoGenerate": true 287 }, 288 "indices": [ 289 { 290 "name": "index_json_data_scope_key", 291 "unique": false, 292 "columnNames": [ 293 "scope_key" 294 ], 295 "createSql": "CREATE INDEX `index_json_data_scope_key` ON `${TABLE_NAME}` (`scope_key`)" 296 } 297 ], 298 "foreignKeys": [] 299 } 300 ], 301 "views": [], 302 "setupQueries": [ 303 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", 304 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '61f9a5dd091c3aa54f5dee1a562c6d2d')" 305 ] 306 } 307}