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