bitque/migrations/2020-03-25-150009_create_comments/up.sql

9 lines
290 B
MySQL
Raw Normal View History

2020-04-02 16:14:07 +02:00
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()
);