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

@ -2,5 +2,5 @@
CREATE TABLE IF NOT EXISTS "post"(
creation_time TIMESTAMPTZ PRIMARY KEY UNIQUE NOT NULL DEFAULT NOW(),
user_id BIGSERIAL NOT NULL REFERENCES "user"(id),
post VARCHAR NOT NULL UNIQUE
post VARCHAR(8192) NOT NULL UNIQUE
);