refactor: ♻️ new limits for database varchars

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-19 03:36:16 +03:00
parent 032a19931d
commit 502334ea79
6 changed files with 7 additions and 7 deletions

View file

@ -3,5 +3,5 @@ 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),
comment VARCHAR NOT NULL
comment VARCHAR(8192) NOT NULL
);