feat: admin routing part 4

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2025-01-27 17:54:57 +03:00
parent 8fb39f27ca
commit c3156aeb41
6 changed files with 111 additions and 36 deletions

View file

@ -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)
);