feat: ✨ admin routing part 5
This commit is contained in:
parent
c3156aeb41
commit
6d3b6a4e79
35 changed files with 385 additions and 401 deletions
|
@ -1,7 +1,7 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE IF NOT EXISTS "post"(
|
||||
user_id BIGSERIAL NOT NULL REFERENCES "user"(user_id),
|
||||
creation_time TIMESTAMPTZ UNIQUE NOT NULL DEFAULT NOW(),
|
||||
post VARCHAR(8192) NOT NULL UNIQUE,
|
||||
PRIMARY KEY(user_id, creation_time)
|
||||
post_id BIGSERIAL PRIMARY KEY NOT NULL UNIQUE,
|
||||
user_id BIGINT NOT NULL REFERENCES "user"(user_id),
|
||||
creation_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
post TEXT NOT NULL UNIQUE
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue