-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
basil/src/main/sqldelight/com/jocmp/basil/db/article_statuses.sq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import kotlin.Boolean; | ||
|
||
CREATE TABLE article_statuses ( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
article_id INTEGER NOT NULL REFERENCES articles(id), | ||
feed_id INTEGER NOT NULL REFERENCES feeds(id), | ||
external_id INTEGER NOT NULL REFERENCES articles(external_id), | ||
read INTEGER AS Boolean DEFAULT 0, | ||
starred INTEGER AS Boolean DEFAULT 0, | ||
arrived_at INTEGER NOT NULL | ||
arrived_at INTEGER NOT NULL, | ||
PRIMARY KEY (feed_id, external_id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters