-
Notifications
You must be signed in to change notification settings - Fork 8
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
4 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import dev.dimension.flare.data.database.cache.model.StatusContent; | ||
import dev.dimension.flare.model.MicroBlogKey; | ||
import dev.dimension.flare.model.PlatformType; | ||
|
||
DROP TABLE IF EXISTS DbStatus; | ||
|
||
CREATE TABLE IF NOT EXISTS DbStatus ( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT, | ||
status_key TEXT AS MicroBlogKey NOT NULL, | ||
account_key TEXT AS MicroBlogKey NOT NULL, | ||
user_key TEXT AS MicroBlogKey, | ||
platform_type TEXT AS PlatformType NOT NULL, | ||
content TEXT AS StatusContent NOT NULL, | ||
UNIQUE (status_key, account_key) | ||
); |