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

12 lines
382 B
MySQL
Raw Normal View History

2020-05-21 17:02:16 +02:00
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()
);