user, role, post db

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-04 23:17:19 +03:00
parent 20af44c357
commit ee9015c1e3
15 changed files with 210 additions and 74 deletions

View file

@ -0,0 +1,6 @@
-- Add up migration script here
CREATE TABLE "post"(
creation_time TIMESTAMPTZ PRIMARY KEY UNIQUE NOT NULL,
poster_id BIGSERIAL NOT NULL REFERENCES "user"(id),
post VARCHAR NOT NULL UNIQUE
);