Plume/migrations/2018-05-13-122311_create_notifications/up.sql
2018-05-13 13:44:18 +01:00

9 lines
223 B
SQL

-- 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
)