fix
This commit is contained in:
parent
8371121130
commit
8deba7afd9
4 changed files with 28 additions and 7 deletions
|
|
@ -28,7 +28,6 @@ CREATE TABLE reviews (
|
|||
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||
data text NOT NULL,
|
||||
rating int CHECK (rating >= 0 AND rating <= 10),
|
||||
illust_id bigint REFERENCES images (id),
|
||||
user_id bigint REFERENCES users (id),
|
||||
title_id bigint REFERENCES titles (id),
|
||||
created_at timestamptz DEFAULT NOW()
|
||||
|
|
@ -87,9 +86,9 @@ CREATE TABLE usertitles (
|
|||
title_id bigint NOT NULL REFERENCES titles (id),
|
||||
status usertitle_status_t NOT NULL,
|
||||
rate int CHECK (rate > 0 AND rate <= 10),
|
||||
review_text text,
|
||||
review_date timestamptz
|
||||
// TODO: series status
|
||||
review_id bigint NOT NULL REFERENCES reviews (id),
|
||||
ctime timestamptz
|
||||
-- // TODO: series status
|
||||
);
|
||||
|
||||
CREATE TABLE title_tags (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue