bitque/jirs-server/migrations/2020-03-25-150009_create_comments/up.sql
2020-04-02 16:14:07 +02:00

9 lines
290 B
SQL

CREATE TABLE comments (
id serial primary key not null,
body text not null,
user_id integer not null references users (id),
issue_id integer not null references issues (id),
created_at timestamp not null default now(),
updated_at timestamp not null default now()
);