Plume/migrations/postgres/2018-05-13-122311_create_notifications/up.sql

9 lines
223 B
MySQL
Raw Normal View History

2018-05-13 12:44:18 +00:00
-- Your SQL goes here
CREATE TABLE notifications (
id SERIAL PRIMARY KEY,
title VARCHAR NOT NULL DEFAULT '',
content TEXT,
link VARCHAR,
user_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL
)