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

@ -1,8 +1,8 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS "user"(
id BIGSERIAL PRIMARY KEY NOT NULL UNIQUE,
name VARCHAR(255) NOT NULL,
surname VARCHAR(255) NOT NULL,
name VARCHAR(256) NOT NULL,
surname VARCHAR(256) NOT NULL,
gender boolean NOT NULL,
birth_date DATE NOT NULL,
role_id BIGSERIAL NOT NULL REFERENCES "role"(id),