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

9 lines
223 B
MySQL
Raw Permalink Normal View History

2018-05-13 14:44:18 +02: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
)