1{ 2 "formatVersion": 1, 3 "database": { 4 "version": 24, 5 "identityHash": "08b926448d86528e697981ddd30459f7", 6 "entities": [ 7 { 8 "tableName": "Dependency", 9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`work_spec_id` TEXT NOT NULL, `prerequisite_id` TEXT NOT NULL, PRIMARY KEY(`work_spec_id`, `prerequisite_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE , FOREIGN KEY(`prerequisite_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )", 10 "fields": [ 11 { 12 "fieldPath": "workSpecId", 13 "columnName": "work_spec_id", 14 "affinity": "TEXT", 15 "notNull": true 16 }, 17 { 18 "fieldPath": "prerequisiteId", 19 "columnName": "prerequisite_id", 20 "affinity": "TEXT", 21 "notNull": true 22 } 23 ], 24 "primaryKey": { 25 "autoGenerate": false, 26 "columnNames": [ 27 "work_spec_id", 28 "prerequisite_id" 29 ] 30 }, 31 "indices": [ 32 { 33 "name": "index_Dependency_work_spec_id", 34 "unique": false, 35 "columnNames": [ 36 "work_spec_id" 37 ], 38 "orders": [], 39 "createSql": "CREATE INDEX IF NOT EXISTS `index_Dependency_work_spec_id` ON `${TABLE_NAME}` (`work_spec_id`)" 40 }, 41 { 42 "name": "index_Dependency_prerequisite_id", 43 "unique": false, 44 "columnNames": [ 45 "prerequisite_id" 46 ], 47 "orders": [], 48 "createSql": "CREATE INDEX IF NOT EXISTS `index_Dependency_prerequisite_id` ON `${TABLE_NAME}` (`prerequisite_id`)" 49 } 50 ], 51 "foreignKeys": [ 52 { 53 "table": "WorkSpec", 54 "onDelete": "CASCADE", 55 "onUpdate": "CASCADE", 56 "columns": [ 57 "work_spec_id" 58 ], 59 "referencedColumns": [ 60 "id" 61 ] 62 }, 63 { 64 "table": "WorkSpec", 65 "onDelete": "CASCADE", 66 "onUpdate": "CASCADE", 67 "columns": [ 68 "prerequisite_id" 69 ], 70 "referencedColumns": [ 71 "id" 72 ] 73 } 74 ] 75 }, 76 { 77 "tableName": "WorkSpec", 78 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `state` INTEGER NOT NULL, `worker_class_name` TEXT NOT NULL, `input_merger_class_name` TEXT NOT NULL, `input` BLOB NOT NULL, `output` BLOB NOT NULL, `initial_delay` INTEGER NOT NULL, `interval_duration` INTEGER NOT NULL, `flex_duration` INTEGER NOT NULL, `run_attempt_count` INTEGER NOT NULL, `backoff_policy` INTEGER NOT NULL, `backoff_delay_duration` INTEGER NOT NULL, `last_enqueue_time` INTEGER NOT NULL DEFAULT -1, `minimum_retention_duration` INTEGER NOT NULL, `schedule_requested_at` INTEGER NOT NULL, `run_in_foreground` INTEGER NOT NULL, `out_of_quota_policy` INTEGER NOT NULL, `period_count` INTEGER NOT NULL DEFAULT 0, `generation` INTEGER NOT NULL DEFAULT 0, `next_schedule_time_override` INTEGER NOT NULL DEFAULT 9223372036854775807, `next_schedule_time_override_generation` INTEGER NOT NULL DEFAULT 0, `stop_reason` INTEGER NOT NULL DEFAULT -256, `trace_tag` TEXT, `backoff_on_system_interruptions` INTEGER, `required_network_type` INTEGER NOT NULL, `required_network_request` BLOB NOT NULL DEFAULT x'', `requires_charging` INTEGER NOT NULL, `requires_device_idle` INTEGER NOT NULL, `requires_battery_not_low` INTEGER NOT NULL, `requires_storage_not_low` INTEGER NOT NULL, `trigger_content_update_delay` INTEGER NOT NULL, `trigger_max_content_delay` INTEGER NOT NULL, `content_uri_triggers` BLOB NOT NULL, PRIMARY KEY(`id`))", 79 "fields": [ 80 { 81 "fieldPath": "id", 82 "columnName": "id", 83 "affinity": "TEXT", 84 "notNull": true 85 }, 86 { 87 "fieldPath": "state", 88 "columnName": "state", 89 "affinity": "INTEGER", 90 "notNull": true 91 }, 92 { 93 "fieldPath": "workerClassName", 94 "columnName": "worker_class_name", 95 "affinity": "TEXT", 96 "notNull": true 97 }, 98 { 99 "fieldPath": "inputMergerClassName", 100 "columnName": "input_merger_class_name", 101 "affinity": "TEXT", 102 "notNull": true 103 }, 104 { 105 "fieldPath": "input", 106 "columnName": "input", 107 "affinity": "BLOB", 108 "notNull": true 109 }, 110 { 111 "fieldPath": "output", 112 "columnName": "output", 113 "affinity": "BLOB", 114 "notNull": true 115 }, 116 { 117 "fieldPath": "initialDelay", 118 "columnName": "initial_delay", 119 "affinity": "INTEGER", 120 "notNull": true 121 }, 122 { 123 "fieldPath": "intervalDuration", 124 "columnName": "interval_duration", 125 "affinity": "INTEGER", 126 "notNull": true 127 }, 128 { 129 "fieldPath": "flexDuration", 130 "columnName": "flex_duration", 131 "affinity": "INTEGER", 132 "notNull": true 133 }, 134 { 135 "fieldPath": "runAttemptCount", 136 "columnName": "run_attempt_count", 137 "affinity": "INTEGER", 138 "notNull": true 139 }, 140 { 141 "fieldPath": "backoffPolicy", 142 "columnName": "backoff_policy", 143 "affinity": "INTEGER", 144 "notNull": true 145 }, 146 { 147 "fieldPath": "backoffDelayDuration", 148 "columnName": "backoff_delay_duration", 149 "affinity": "INTEGER", 150 "notNull": true 151 }, 152 { 153 "fieldPath": "lastEnqueueTime", 154 "columnName": "last_enqueue_time", 155 "affinity": "INTEGER", 156 "notNull": true, 157 "defaultValue": "-1" 158 }, 159 { 160 "fieldPath": "minimumRetentionDuration", 161 "columnName": "minimum_retention_duration", 162 "affinity": "INTEGER", 163 "notNull": true 164 }, 165 { 166 "fieldPath": "scheduleRequestedAt", 167 "columnName": "schedule_requested_at", 168 "affinity": "INTEGER", 169 "notNull": true 170 }, 171 { 172 "fieldPath": "expedited", 173 "columnName": "run_in_foreground", 174 "affinity": "INTEGER", 175 "notNull": true 176 }, 177 { 178 "fieldPath": "outOfQuotaPolicy", 179 "columnName": "out_of_quota_policy", 180 "affinity": "INTEGER", 181 "notNull": true 182 }, 183 { 184 "fieldPath": "periodCount", 185 "columnName": "period_count", 186 "affinity": "INTEGER", 187 "notNull": true, 188 "defaultValue": "0" 189 }, 190 { 191 "fieldPath": "generation", 192 "columnName": "generation", 193 "affinity": "INTEGER", 194 "notNull": true, 195 "defaultValue": "0" 196 }, 197 { 198 "fieldPath": "nextScheduleTimeOverride", 199 "columnName": "next_schedule_time_override", 200 "affinity": "INTEGER", 201 "notNull": true, 202 "defaultValue": "9223372036854775807" 203 }, 204 { 205 "fieldPath": "nextScheduleTimeOverrideGeneration", 206 "columnName": "next_schedule_time_override_generation", 207 "affinity": "INTEGER", 208 "notNull": true, 209 "defaultValue": "0" 210 }, 211 { 212 "fieldPath": "stopReason", 213 "columnName": "stop_reason", 214 "affinity": "INTEGER", 215 "notNull": true, 216 "defaultValue": "-256" 217 }, 218 { 219 "fieldPath": "traceTag", 220 "columnName": "trace_tag", 221 "affinity": "TEXT", 222 "notNull": false 223 }, 224 { 225 "fieldPath": "backOffOnSystemInterruptions", 226 "columnName": "backoff_on_system_interruptions", 227 "affinity": "INTEGER", 228 "notNull": false 229 }, 230 { 231 "fieldPath": "constraints.requiredNetworkType", 232 "columnName": "required_network_type", 233 "affinity": "INTEGER", 234 "notNull": true 235 }, 236 { 237 "fieldPath": "constraints.requiredNetworkRequestCompat", 238 "columnName": "required_network_request", 239 "affinity": "BLOB", 240 "notNull": true, 241 "defaultValue": "x''" 242 }, 243 { 244 "fieldPath": "constraints.requiresCharging", 245 "columnName": "requires_charging", 246 "affinity": "INTEGER", 247 "notNull": true 248 }, 249 { 250 "fieldPath": "constraints.requiresDeviceIdle", 251 "columnName": "requires_device_idle", 252 "affinity": "INTEGER", 253 "notNull": true 254 }, 255 { 256 "fieldPath": "constraints.requiresBatteryNotLow", 257 "columnName": "requires_battery_not_low", 258 "affinity": "INTEGER", 259 "notNull": true 260 }, 261 { 262 "fieldPath": "constraints.requiresStorageNotLow", 263 "columnName": "requires_storage_not_low", 264 "affinity": "INTEGER", 265 "notNull": true 266 }, 267 { 268 "fieldPath": "constraints.contentTriggerUpdateDelayMillis", 269 "columnName": "trigger_content_update_delay", 270 "affinity": "INTEGER", 271 "notNull": true 272 }, 273 { 274 "fieldPath": "constraints.contentTriggerMaxDelayMillis", 275 "columnName": "trigger_max_content_delay", 276 "affinity": "INTEGER", 277 "notNull": true 278 }, 279 { 280 "fieldPath": "constraints.contentUriTriggers", 281 "columnName": "content_uri_triggers", 282 "affinity": "BLOB", 283 "notNull": true 284 } 285 ], 286 "primaryKey": { 287 "autoGenerate": false, 288 "columnNames": [ 289 "id" 290 ] 291 }, 292 "indices": [ 293 { 294 "name": "index_WorkSpec_schedule_requested_at", 295 "unique": false, 296 "columnNames": [ 297 "schedule_requested_at" 298 ], 299 "orders": [], 300 "createSql": "CREATE INDEX IF NOT EXISTS `index_WorkSpec_schedule_requested_at` ON `${TABLE_NAME}` (`schedule_requested_at`)" 301 }, 302 { 303 "name": "index_WorkSpec_last_enqueue_time", 304 "unique": false, 305 "columnNames": [ 306 "last_enqueue_time" 307 ], 308 "orders": [], 309 "createSql": "CREATE INDEX IF NOT EXISTS `index_WorkSpec_last_enqueue_time` ON `${TABLE_NAME}` (`last_enqueue_time`)" 310 } 311 ], 312 "foreignKeys": [] 313 }, 314 { 315 "tableName": "WorkTag", 316 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tag` TEXT NOT NULL, `work_spec_id` TEXT NOT NULL, PRIMARY KEY(`tag`, `work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )", 317 "fields": [ 318 { 319 "fieldPath": "tag", 320 "columnName": "tag", 321 "affinity": "TEXT", 322 "notNull": true 323 }, 324 { 325 "fieldPath": "workSpecId", 326 "columnName": "work_spec_id", 327 "affinity": "TEXT", 328 "notNull": true 329 } 330 ], 331 "primaryKey": { 332 "autoGenerate": false, 333 "columnNames": [ 334 "tag", 335 "work_spec_id" 336 ] 337 }, 338 "indices": [ 339 { 340 "name": "index_WorkTag_work_spec_id", 341 "unique": false, 342 "columnNames": [ 343 "work_spec_id" 344 ], 345 "orders": [], 346 "createSql": "CREATE INDEX IF NOT EXISTS `index_WorkTag_work_spec_id` ON `${TABLE_NAME}` (`work_spec_id`)" 347 } 348 ], 349 "foreignKeys": [ 350 { 351 "table": "WorkSpec", 352 "onDelete": "CASCADE", 353 "onUpdate": "CASCADE", 354 "columns": [ 355 "work_spec_id" 356 ], 357 "referencedColumns": [ 358 "id" 359 ] 360 } 361 ] 362 }, 363 { 364 "tableName": "SystemIdInfo", 365 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`work_spec_id` TEXT NOT NULL, `generation` INTEGER NOT NULL DEFAULT 0, `system_id` INTEGER NOT NULL, PRIMARY KEY(`work_spec_id`, `generation`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )", 366 "fields": [ 367 { 368 "fieldPath": "workSpecId", 369 "columnName": "work_spec_id", 370 "affinity": "TEXT", 371 "notNull": true 372 }, 373 { 374 "fieldPath": "generation", 375 "columnName": "generation", 376 "affinity": "INTEGER", 377 "notNull": true, 378 "defaultValue": "0" 379 }, 380 { 381 "fieldPath": "systemId", 382 "columnName": "system_id", 383 "affinity": "INTEGER", 384 "notNull": true 385 } 386 ], 387 "primaryKey": { 388 "autoGenerate": false, 389 "columnNames": [ 390 "work_spec_id", 391 "generation" 392 ] 393 }, 394 "indices": [], 395 "foreignKeys": [ 396 { 397 "table": "WorkSpec", 398 "onDelete": "CASCADE", 399 "onUpdate": "CASCADE", 400 "columns": [ 401 "work_spec_id" 402 ], 403 "referencedColumns": [ 404 "id" 405 ] 406 } 407 ] 408 }, 409 { 410 "tableName": "WorkName", 411 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `work_spec_id` TEXT NOT NULL, PRIMARY KEY(`name`, `work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )", 412 "fields": [ 413 { 414 "fieldPath": "name", 415 "columnName": "name", 416 "affinity": "TEXT", 417 "notNull": true 418 }, 419 { 420 "fieldPath": "workSpecId", 421 "columnName": "work_spec_id", 422 "affinity": "TEXT", 423 "notNull": true 424 } 425 ], 426 "primaryKey": { 427 "autoGenerate": false, 428 "columnNames": [ 429 "name", 430 "work_spec_id" 431 ] 432 }, 433 "indices": [ 434 { 435 "name": "index_WorkName_work_spec_id", 436 "unique": false, 437 "columnNames": [ 438 "work_spec_id" 439 ], 440 "orders": [], 441 "createSql": "CREATE INDEX IF NOT EXISTS `index_WorkName_work_spec_id` ON `${TABLE_NAME}` (`work_spec_id`)" 442 } 443 ], 444 "foreignKeys": [ 445 { 446 "table": "WorkSpec", 447 "onDelete": "CASCADE", 448 "onUpdate": "CASCADE", 449 "columns": [ 450 "work_spec_id" 451 ], 452 "referencedColumns": [ 453 "id" 454 ] 455 } 456 ] 457 }, 458 { 459 "tableName": "WorkProgress", 460 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`work_spec_id` TEXT NOT NULL, `progress` BLOB NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )", 461 "fields": [ 462 { 463 "fieldPath": "workSpecId", 464 "columnName": "work_spec_id", 465 "affinity": "TEXT", 466 "notNull": true 467 }, 468 { 469 "fieldPath": "progress", 470 "columnName": "progress", 471 "affinity": "BLOB", 472 "notNull": true 473 } 474 ], 475 "primaryKey": { 476 "autoGenerate": false, 477 "columnNames": [ 478 "work_spec_id" 479 ] 480 }, 481 "indices": [], 482 "foreignKeys": [ 483 { 484 "table": "WorkSpec", 485 "onDelete": "CASCADE", 486 "onUpdate": "CASCADE", 487 "columns": [ 488 "work_spec_id" 489 ], 490 "referencedColumns": [ 491 "id" 492 ] 493 } 494 ] 495 }, 496 { 497 "tableName": "Preference", 498 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`key` TEXT NOT NULL, `long_value` INTEGER, PRIMARY KEY(`key`))", 499 "fields": [ 500 { 501 "fieldPath": "key", 502 "columnName": "key", 503 "affinity": "TEXT", 504 "notNull": true 505 }, 506 { 507 "fieldPath": "value", 508 "columnName": "long_value", 509 "affinity": "INTEGER", 510 "notNull": false 511 } 512 ], 513 "primaryKey": { 514 "autoGenerate": false, 515 "columnNames": [ 516 "key" 517 ] 518 }, 519 "indices": [], 520 "foreignKeys": [] 521 } 522 ], 523 "views": [], 524 "setupQueries": [ 525 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", 526 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '08b926448d86528e697981ddd30459f7')" 527 ] 528 } 529}