{ "formatVersion": 1, "database": { "version": 7, "identityHash": "5c773fd70806bc703b78e14bfe756ac0", "entities": [ { "tableName": "feeds", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `custom_title` TEXT NOT NULL, `url` TEXT NOT NULL, `tag` TEXT NOT NULL, `notify` INTEGER NOT NULL, `image_url` TEXT)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "customTitle", "columnName": "custom_title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "url", "columnName": "url", "affinity": "TEXT", "notNull": true }, { "fieldPath": "tag", "columnName": "tag", "affinity": "TEXT", "notNull": true }, { "fieldPath": "notify", "columnName": "notify", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "imageUrl", "columnName": "image_url", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": true }, "indices": [ { "name": "index_feeds_url", "unique": true, "columnNames": [ "url" ], "createSql": "CREATE UNIQUE INDEX `index_feeds_url` ON `${TABLE_NAME}` (`url`)" }, { "name": "index_feeds_id_url_title", "unique": true, "columnNames": [ "id", "url", "title" ], "createSql": "CREATE UNIQUE INDEX `index_feeds_id_url_title` ON `${TABLE_NAME}` (`id`, `url`, `title`)" } ], "foreignKeys": [] }, { "tableName": "feed_items", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `guid` TEXT NOT NULL, `title` TEXT NOT NULL, `description` TEXT NOT NULL, `plain_title` TEXT NOT NULL, `plain_snippet` TEXT NOT NULL, `image_url` TEXT, `enclosure_link` TEXT, `author` TEXT, `pub_date` TEXT, `link` TEXT, `unread` INTEGER NOT NULL, `notified` INTEGER NOT NULL, `feed_id` INTEGER, FOREIGN KEY(`feed_id`) REFERENCES `feeds`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "guid", "columnName": "guid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": true }, { "fieldPath": "plainTitle", "columnName": "plain_title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "plainSnippet", "columnName": "plain_snippet", "affinity": "TEXT", "notNull": true }, { "fieldPath": "imageUrl", "columnName": "image_url", "affinity": "TEXT", "notNull": false }, { "fieldPath": "enclosureLink", "columnName": "enclosure_link", "affinity": "TEXT", "notNull": false }, { "fieldPath": "author", "columnName": "author", "affinity": "TEXT", "notNull": false }, { "fieldPath": "pubDate", "columnName": "pub_date", "affinity": "TEXT", "notNull": false }, { "fieldPath": "link", "columnName": "link", "affinity": "TEXT", "notNull": false }, { "fieldPath": "unread", "columnName": "unread", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "notified", "columnName": "notified", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "feedId", "columnName": "feed_id", "affinity": "INTEGER", "notNull": false } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": true }, "indices": [ { "name": "index_feed_items_guid_feed_id", "unique": true, "columnNames": [ "guid", "feed_id" ], "createSql": "CREATE UNIQUE INDEX `index_feed_items_guid_feed_id` ON `${TABLE_NAME}` (`guid`, `feed_id`)" }, { "name": "index_feed_items_feed_id", "unique": false, "columnNames": [ "feed_id" ], "createSql": "CREATE INDEX `index_feed_items_feed_id` ON `${TABLE_NAME}` (`feed_id`)" } ], "foreignKeys": [ { "table": "feeds", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "feed_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, \"5c773fd70806bc703b78e14bfe756ac0\")" ] } }