| { |
| "formatVersion": 1, |
| "database": { |
| "version": 1, |
| "identityHash": "f890a1c3a43db87aba55eaaf535b9e03", |
| "entities": [ |
| { |
| "tableName": "Dependency", |
| "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 )", |
| "fields": [ |
| { |
| "fieldPath": "workSpecId", |
| "columnName": "work_spec_id", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "prerequisiteId", |
| "columnName": "prerequisite_id", |
| "affinity": "TEXT", |
| "notNull": true |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "work_spec_id", |
| "prerequisite_id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_Dependency_work_spec_id", |
| "unique": false, |
| "columnNames": [ |
| "work_spec_id" |
| ], |
| "createSql": "CREATE INDEX `index_Dependency_work_spec_id` ON `${TABLE_NAME}` (`work_spec_id`)" |
| }, |
| { |
| "name": "index_Dependency_prerequisite_id", |
| "unique": false, |
| "columnNames": [ |
| "prerequisite_id" |
| ], |
| "createSql": "CREATE INDEX `index_Dependency_prerequisite_id` ON `${TABLE_NAME}` (`prerequisite_id`)" |
| } |
| ], |
| "foreignKeys": [ |
| { |
| "table": "WorkSpec", |
| "onDelete": "CASCADE", |
| "onUpdate": "CASCADE", |
| "columns": [ |
| "work_spec_id" |
| ], |
| "referencedColumns": [ |
| "id" |
| ] |
| }, |
| { |
| "table": "WorkSpec", |
| "onDelete": "CASCADE", |
| "onUpdate": "CASCADE", |
| "columns": [ |
| "prerequisite_id" |
| ], |
| "referencedColumns": [ |
| "id" |
| ] |
| } |
| ] |
| }, |
| { |
| "tableName": "WorkSpec", |
| "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, `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, `period_start_time` INTEGER NOT NULL, `minimum_retention_duration` INTEGER NOT NULL, `schedule_requested_at` INTEGER NOT NULL, `required_network_type` INTEGER, `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, `content_uri_triggers` BLOB, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "state", |
| "columnName": "state", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "workerClassName", |
| "columnName": "worker_class_name", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "inputMergerClassName", |
| "columnName": "input_merger_class_name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "input", |
| "columnName": "input", |
| "affinity": "BLOB", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "output", |
| "columnName": "output", |
| "affinity": "BLOB", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "initialDelay", |
| "columnName": "initial_delay", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "intervalDuration", |
| "columnName": "interval_duration", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "flexDuration", |
| "columnName": "flex_duration", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "runAttemptCount", |
| "columnName": "run_attempt_count", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "backoffPolicy", |
| "columnName": "backoff_policy", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "backoffDelayDuration", |
| "columnName": "backoff_delay_duration", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "periodStartTime", |
| "columnName": "period_start_time", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "minimumRetentionDuration", |
| "columnName": "minimum_retention_duration", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "scheduleRequestedAt", |
| "columnName": "schedule_requested_at", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "constraints.mRequiredNetworkType", |
| "columnName": "required_network_type", |
| "affinity": "INTEGER", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "constraints.mRequiresCharging", |
| "columnName": "requires_charging", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "constraints.mRequiresDeviceIdle", |
| "columnName": "requires_device_idle", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "constraints.mRequiresBatteryNotLow", |
| "columnName": "requires_battery_not_low", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "constraints.mRequiresStorageNotLow", |
| "columnName": "requires_storage_not_low", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "constraints.mContentUriTriggers", |
| "columnName": "content_uri_triggers", |
| "affinity": "BLOB", |
| "notNull": false |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_WorkSpec_schedule_requested_at", |
| "unique": false, |
| "columnNames": [ |
| "schedule_requested_at" |
| ], |
| "createSql": "CREATE INDEX `index_WorkSpec_schedule_requested_at` ON `${TABLE_NAME}` (`schedule_requested_at`)" |
| } |
| ], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "WorkTag", |
| "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 )", |
| "fields": [ |
| { |
| "fieldPath": "tag", |
| "columnName": "tag", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "workSpecId", |
| "columnName": "work_spec_id", |
| "affinity": "TEXT", |
| "notNull": true |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "tag", |
| "work_spec_id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_WorkTag_work_spec_id", |
| "unique": false, |
| "columnNames": [ |
| "work_spec_id" |
| ], |
| "createSql": "CREATE INDEX `index_WorkTag_work_spec_id` ON `${TABLE_NAME}` (`work_spec_id`)" |
| } |
| ], |
| "foreignKeys": [ |
| { |
| "table": "WorkSpec", |
| "onDelete": "CASCADE", |
| "onUpdate": "CASCADE", |
| "columns": [ |
| "work_spec_id" |
| ], |
| "referencedColumns": [ |
| "id" |
| ] |
| } |
| ] |
| }, |
| { |
| "tableName": "alarmInfo", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`work_spec_id` TEXT NOT NULL, `alarm_id` INTEGER NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )", |
| "fields": [ |
| { |
| "fieldPath": "workSpecId", |
| "columnName": "work_spec_id", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "alarmId", |
| "columnName": "alarm_id", |
| "affinity": "INTEGER", |
| "notNull": true |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "work_spec_id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [ |
| { |
| "table": "WorkSpec", |
| "onDelete": "CASCADE", |
| "onUpdate": "CASCADE", |
| "columns": [ |
| "work_spec_id" |
| ], |
| "referencedColumns": [ |
| "id" |
| ] |
| } |
| ] |
| }, |
| { |
| "tableName": "WorkName", |
| "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 )", |
| "fields": [ |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "workSpecId", |
| "columnName": "work_spec_id", |
| "affinity": "TEXT", |
| "notNull": true |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "name", |
| "work_spec_id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_WorkName_work_spec_id", |
| "unique": false, |
| "columnNames": [ |
| "work_spec_id" |
| ], |
| "createSql": "CREATE INDEX `index_WorkName_work_spec_id` ON `${TABLE_NAME}` (`work_spec_id`)" |
| } |
| ], |
| "foreignKeys": [ |
| { |
| "table": "WorkSpec", |
| "onDelete": "CASCADE", |
| "onUpdate": "CASCADE", |
| "columns": [ |
| "work_spec_id" |
| ], |
| "referencedColumns": [ |
| "id" |
| ] |
| } |
| ] |
| } |
| ], |
| "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, \"f890a1c3a43db87aba55eaaf535b9e03\")" |
| ] |
| } |
| } |