418 lines
No EOL
12 KiB
JSON
418 lines
No EOL
12 KiB
JSON
{
|
|
"formatVersion": 1,
|
|
"database": {
|
|
"version": 5,
|
|
"identityHash": "f77b36e3025da0880f0c886150dbd654",
|
|
"entities": [
|
|
{
|
|
"tableName": "folder",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `position` INTEGER NOT NULL, `collapsed` INTEGER NOT NULL)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "name",
|
|
"columnName": "name",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "position",
|
|
"columnName": "position",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "collapsed",
|
|
"columnName": "collapsed",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": true,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"tableName": "feed",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT NOT NULL, `title` TEXT NOT NULL, `siteUrl` TEXT, `folderId` INTEGER, `position` INTEGER NOT NULL, `fullPage` INTEGER NOT NULL, `storeImages` INTEGER NOT NULL, `backgroundRefresh` INTEGER NOT NULL, `hasIcon` INTEGER NOT NULL, `addedAt` INTEGER NOT NULL, `removedAt` INTEGER, `contentChosen` INTEGER NOT NULL DEFAULT 1, `etag` TEXT, `lastModified` TEXT, `refreshedAt` INTEGER, `lastNew` INTEGER NOT NULL DEFAULT 0, `lastError` TEXT, `failingSince` INTEGER, `failedAttempts` INTEGER NOT NULL DEFAULT 0, `ownLook` INTEGER NOT NULL DEFAULT 0, `look` TEXT, `previewLines` INTEGER NOT NULL DEFAULT 0, `keepDays` INTEGER, `language` TEXT)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "url",
|
|
"columnName": "url",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "title",
|
|
"columnName": "title",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "siteUrl",
|
|
"columnName": "siteUrl",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "folderId",
|
|
"columnName": "folderId",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "position",
|
|
"columnName": "position",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "fullPage",
|
|
"columnName": "fullPage",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "storeImages",
|
|
"columnName": "storeImages",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "backgroundRefresh",
|
|
"columnName": "backgroundRefresh",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "hasIcon",
|
|
"columnName": "hasIcon",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "addedAt",
|
|
"columnName": "addedAt",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "removedAt",
|
|
"columnName": "removedAt",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "contentChosen",
|
|
"columnName": "contentChosen",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "1"
|
|
},
|
|
{
|
|
"fieldPath": "etag",
|
|
"columnName": "etag",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "lastModified",
|
|
"columnName": "lastModified",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "refreshedAt",
|
|
"columnName": "refreshedAt",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "lastNew",
|
|
"columnName": "lastNew",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "lastError",
|
|
"columnName": "lastError",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "failingSince",
|
|
"columnName": "failingSince",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "failedAttempts",
|
|
"columnName": "failedAttempts",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "ownLook",
|
|
"columnName": "ownLook",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "look",
|
|
"columnName": "look",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "previewLines",
|
|
"columnName": "previewLines",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "keepDays",
|
|
"columnName": "keepDays",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "language",
|
|
"columnName": "language",
|
|
"affinity": "TEXT"
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": true,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_feed_url",
|
|
"unique": true,
|
|
"columnNames": [
|
|
"url"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_feed_url` ON `${TABLE_NAME}` (`url`)"
|
|
},
|
|
{
|
|
"name": "index_feed_folderId",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"folderId"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_feed_folderId` ON `${TABLE_NAME}` (`folderId`)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tableName": "article",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `feedId` INTEGER NOT NULL, `guid` TEXT NOT NULL, `title` TEXT NOT NULL, `link` TEXT, `author` TEXT, `published` INTEGER NOT NULL, `firstSeen` INTEGER NOT NULL, `preview` TEXT, `imageUrl` TEXT, `read` INTEGER NOT NULL, `saved` INTEGER NOT NULL, `state` INTEGER NOT NULL, `words` INTEGER NOT NULL, `readIndex` INTEGER NOT NULL DEFAULT 0, `readOffset` INTEGER NOT NULL DEFAULT 0, `version` INTEGER NOT NULL DEFAULT 0, `gone` INTEGER NOT NULL DEFAULT 0)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "feedId",
|
|
"columnName": "feedId",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "guid",
|
|
"columnName": "guid",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "title",
|
|
"columnName": "title",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "link",
|
|
"columnName": "link",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "author",
|
|
"columnName": "author",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "published",
|
|
"columnName": "published",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "firstSeen",
|
|
"columnName": "firstSeen",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "preview",
|
|
"columnName": "preview",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "imageUrl",
|
|
"columnName": "imageUrl",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "read",
|
|
"columnName": "read",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "saved",
|
|
"columnName": "saved",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "state",
|
|
"columnName": "state",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "words",
|
|
"columnName": "words",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "readIndex",
|
|
"columnName": "readIndex",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "readOffset",
|
|
"columnName": "readOffset",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "version",
|
|
"columnName": "version",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
},
|
|
{
|
|
"fieldPath": "gone",
|
|
"columnName": "gone",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "0"
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": true,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_article_feedId_guid",
|
|
"unique": true,
|
|
"columnNames": [
|
|
"feedId",
|
|
"guid"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_article_feedId_guid` ON `${TABLE_NAME}` (`feedId`, `guid`)"
|
|
},
|
|
{
|
|
"name": "index_article_published",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"published"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_article_published` ON `${TABLE_NAME}` (`published`)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tableName": "article_content",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`articleId` INTEGER NOT NULL, `feed` TEXT, `page` TEXT, PRIMARY KEY(`articleId`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "articleId",
|
|
"columnName": "articleId",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "feed",
|
|
"columnName": "feed",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "page",
|
|
"columnName": "page",
|
|
"affinity": "TEXT"
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"articleId"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"tableName": "article_search",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`articleId` INTEGER NOT NULL, `folded` TEXT NOT NULL, PRIMARY KEY(`articleId`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "articleId",
|
|
"columnName": "articleId",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "folded",
|
|
"columnName": "folded",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": false,
|
|
"columnNames": [
|
|
"articleId"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"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, 'f77b36e3025da0880f0c886150dbd654')"
|
|
]
|
|
}
|
|
} |