| { |
| "formatVersion": 1, |
| "database": { |
| "version": 2, |
| "identityHash": "cb0906b793f21e53ed5ff0db35729db5", |
| "entities": [ |
| { |
| "tableName": "Entity1", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity2", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, `addedInV2` INTEGER NOT NULL DEFAULT 2, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| }, |
| { |
| "fieldPath": "addedInV2", |
| "columnName": "addedInV2", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "2" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity3", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity4", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 2, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "2" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity5", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` TEXT DEFAULT '1', PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "TEXT", |
| "notNull": false, |
| "defaultValue": "'1'" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity6", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity7", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity8", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`name`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "name" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity9", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`), FOREIGN KEY(`id`) REFERENCES `Entity12`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED)", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [ |
| { |
| "table": "Entity12", |
| "onDelete": "NO ACTION", |
| "onUpdate": "NO ACTION", |
| "columns": [ |
| "id" |
| ], |
| "referencedColumns": [ |
| "id" |
| ] |
| } |
| ] |
| }, |
| { |
| "tableName": "Entity10", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`), FOREIGN KEY(`addedInV1`) REFERENCES `Entity13`(`addedInV1`) ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED)", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_Entity10_addedInV1", |
| "unique": true, |
| "columnNames": [ |
| "addedInV1" |
| ], |
| "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Entity10_addedInV1` ON `${TABLE_NAME}` (`addedInV1`)" |
| } |
| ], |
| "foreignKeys": [ |
| { |
| "table": "Entity13", |
| "onDelete": "NO ACTION", |
| "onUpdate": "NO ACTION", |
| "columns": [ |
| "addedInV1" |
| ], |
| "referencedColumns": [ |
| "addedInV1" |
| ] |
| } |
| ] |
| }, |
| { |
| "tableName": "Entity11", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity12", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_Entity12_name", |
| "unique": true, |
| "columnNames": [ |
| "name" |
| ], |
| "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Entity12_name` ON `${TABLE_NAME}` (`name`)" |
| } |
| ], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity13", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, `addedInV1` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| }, |
| { |
| "fieldPath": "addedInV1", |
| "columnName": "addedInV1", |
| "affinity": "INTEGER", |
| "notNull": true, |
| "defaultValue": "1" |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [ |
| { |
| "name": "index_Entity13_addedInV1", |
| "unique": true, |
| "columnNames": [ |
| "addedInV1" |
| ], |
| "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Entity13_addedInV1` ON `${TABLE_NAME}` (`addedInV1`)" |
| } |
| ], |
| "foreignKeys": [] |
| }, |
| { |
| "tableName": "Entity14", |
| "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, PRIMARY KEY(`id`))", |
| "fields": [ |
| { |
| "fieldPath": "id", |
| "columnName": "id", |
| "affinity": "INTEGER", |
| "notNull": true |
| }, |
| { |
| "fieldPath": "name", |
| "columnName": "name", |
| "affinity": "TEXT", |
| "notNull": false |
| } |
| ], |
| "primaryKey": { |
| "columnNames": [ |
| "id" |
| ], |
| "autoGenerate": false |
| }, |
| "indices": [], |
| "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, 'cb0906b793f21e53ed5ff0db35729db5')" |
| ] |
| } |
| } |