Add a notification model
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE notifications;
|
||||
@@ -0,0 +1,8 @@
|
||||
-- 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
|
||||
)
|
||||
Reference in New Issue
Block a user