"createSql":"CREATE INDEX IF NOT EXISTS `index_Item_feed_id` ON `${TABLE_NAME}` (`feed_id`)"
}
],
"foreignKeys":[
{
"table":"Feed",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"feed_id"
],
"referencedColumns":[
"id"
]
}
]
},
{
"tableName":"Folder",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `remoteId` TEXT, `account_id` INTEGER NOT NULL, FOREIGN KEY(`account_id`) REFERENCES `Account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"name",
"columnName":"name",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"remoteId",
"columnName":"remoteId",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"accountId",
"columnName":"account_id",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"autoGenerate":true,
"columnNames":[
"id"
]
},
"indices":[
{
"name":"index_Folder_account_id",
"unique":false,
"columnNames":[
"account_id"
],
"orders":[],
"createSql":"CREATE INDEX IF NOT EXISTS `index_Folder_account_id` ON `${TABLE_NAME}` (`account_id`)"
}
],
"foreignKeys":[
{
"table":"Account",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"account_id"
],
"referencedColumns":[
"id"
]
}
]
},
{
"tableName":"Account",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT, `account_name` TEXT, `displayed_name` TEXT, `account_type` INTEGER, `last_modified` INTEGER NOT NULL, `current_account` INTEGER NOT NULL, `token` TEXT, `writeToken` TEXT, `notifications_enabled` INTEGER NOT NULL)",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"url",
"columnName":"url",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"accountName",
"columnName":"account_name",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"displayedName",
"columnName":"displayed_name",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"accountType",
"columnName":"account_type",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"lastModified",
"columnName":"last_modified",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"isCurrentAccount",
"columnName":"current_account",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"token",
"columnName":"token",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"writeToken",
"columnName":"writeToken",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"isNotificationsEnabled",
"columnName":"notifications_enabled",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"autoGenerate":true,
"columnNames":[
"id"
]
},
"indices":[],
"foreignKeys":[]
},
{
"tableName":"ItemStateChange",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `read_change` INTEGER NOT NULL, `star_change` INTEGER NOT NULL, `account_id` INTEGER NOT NULL, PRIMARY KEY(`id`), FOREIGN KEY(`account_id`) REFERENCES `Account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"readChange",
"columnName":"read_change",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"starChange",
"columnName":"star_change",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"accountId",
"columnName":"account_id",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"autoGenerate":false,
"columnNames":[
"id"
]
},
"indices":[],
"foreignKeys":[
{
"table":"Account",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"account_id"
],
"referencedColumns":[
"id"
]
}
]
},
{
"tableName":"ItemState",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `read` INTEGER NOT NULL, `starred` INTEGER NOT NULL, `remote_id` TEXT NOT NULL, `account_id` INTEGER NOT NULL, FOREIGN KEY(`account_id`) REFERENCES `Account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"read",
"columnName":"read",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"starred",
"columnName":"starred",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"remoteId",
"columnName":"remote_id",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"accountId",
"columnName":"account_id",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"autoGenerate":true,
"columnNames":[
"id"
]
},
"indices":[
{
"name":"index_ItemState_remote_id_account_id",
"unique":true,
"columnNames":[
"remote_id",
"account_id"
],
"orders":[],
"createSql":"CREATE UNIQUE INDEX IF NOT EXISTS `index_ItemState_remote_id_account_id` ON `${TABLE_NAME}` (`remote_id`, `account_id`)"
}
],
"foreignKeys":[
{
"table":"Account",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"account_id"
],
"referencedColumns":[
"id"
]
}
]
}
],
"views":[],
"setupQueries":[
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",