news/app/schemas/sh.hnet.news.data.NewsDatabase/1.json

150 lines
No EOL
4.4 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "a5a7b5e56963e922d7690dae3e300ecd",
"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)",
"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"
}
],
"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`)"
}
]
}
],
"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, 'a5a7b5e56963e922d7690dae3e300ecd')"
]
}
}