-- users' subscriptions to newsfeeds, with settings
idintegerprimarykey,-- sequence number
ownertextnotnullreferencesarsse_users(id)ondeletecascadeonupdatecascade,-- owner of subscription
feedintegernotnullreferencesarsse_feeds(id)ondeletecascade,-- feed for the subscription
addedtextnotnulldefaultCURRENT_TIMESTAMP,-- time at which feed was added
modifiedtextnotnulldefaultCURRENT_TIMESTAMP,-- time at which subscription properties were last modified
titletextcollatenocase,-- user-supplied title
order_typeintnotnulldefault0,-- NextCloud sort order
pinnedbooleannotnulldefault0,-- whether feed is pinned (always sorts at top)
folderintegerreferencesarsse_folders(id)ondeletecascade,-- TT-RSS category (nestable); the first-level category (which acts as NextCloud folder) is joined in when needed
unique(owner,feed)-- a given feed should only appear once for a given owner
feedintegernotnullreferencesarsse_feeds(id)ondeletecascade,-- feed for the subscription
urltext,-- URL of article
titletextcollatenocase,-- article title
authortextcollatenocase,-- author's name
publishedtext,-- time of original publication
editedtext,-- time of last edit by author
modifiedtextnotnulldefaultCURRENT_TIMESTAMP,-- time when article was last modified in database
contenttext,-- content, as (X)HTML
guidtext,-- GUID
url_title_hashtextnotnull,-- hash of URL + title; used when checking for updates and for identification if there is no guid.
url_content_hashtextnotnull,-- hash of URL + content, enclosure URL, & content type; used when checking for updates and for identification if there is no guid.
title_content_hashtextnotnull-- hash of title + content, enclosure URL, & content type; used when checking for updates and for identification if there is no guid.