diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-03-11 01:04:48 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-03-11 01:04:48 +0900 |
commit | 8fdc5179b1d5ba075c74f28337f1c83e28240ed2 (patch) | |
tree | 87eb29201a7756975c229e52595bab7ad96c0163 /deploy | |
parent | 62ce03796ba8e43277ba3f5acbf55cfb76591416 (diff) |
Add table manage diary article tags.
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/article_tags.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/article_tags.sql b/deploy/article_tags.sql new file mode 100644 index 0000000..617dcdc --- /dev/null +++ b/deploy/article_tags.sql @@ -0,0 +1,15 @@ +-- Deploy diary:article_tags to pg +-- requires: schema + +BEGIN; + +SET search_path to diary; + +CREATE TABLE article_tags( + id UUID PRIMARY KEY, + name TEXT UNIQUE NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW() +); + +COMMIT; |