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