bitque/jirs-server/migrations/2020-05-21-064702_create_messages/up.sql

12 lines
382 B
SQL

CREATE TABLE messages (
id serial primary key not null,
receiver_id int not null references users (id),
sender_id int not null references users (id),
summary text not null,
description text not null,
message_type text not null,
hyper_link text not null,
created_at timestamp not null default now(),
updated_at timestamp not null default now()
);