refactor: ♻️ new permission strategy part 2
This commit is contained in:
parent
56aa04e32a
commit
bcfcd2c6f0
15 changed files with 393 additions and 73 deletions
|
@ -2,6 +2,6 @@
|
|||
CREATE TABLE IF NOT EXISTS "comment"(
|
||||
creation_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE DEFAULT NOW(),
|
||||
post_creation_time TIMESTAMPTZ NOT NULL REFERENCES "post"(creation_time),
|
||||
user_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||||
user_id BIGSERIAL NOT NULL REFERENCES "user"(user_id),
|
||||
comment VARCHAR(8192) NOT NULL
|
||||
);
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue