forked from kangalio/rustbot
-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
06c2b52
commit 183b522
Showing
6 changed files
with
700 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CREATE TABLE IF NOT EXISTS tags | ||
( | ||
name TEXT PRIMARY KEY, | ||
content BIGINT NOT NULL, | ||
creator_user_id BIGINT NOT NULL, | ||
last_editor_user_id TEXT, | ||
creation_date TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, | ||
last_edit_date TIMESTAMPTZ, | ||
times_used INT DEFAULT 0, | ||
restricted BOOLEAN DEFAULT FALSE | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS tag_aliases | ||
( | ||
alias TEXT PRIMARY KEY, | ||
tag_name TEXT NOT NULL, | ||
FOREIGN KEY (tag_name) REFERENCES tags (name) ON DELETE CASCADE | ||
); |
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
Oops, something went wrong.