adds notifications table and models

This commit is contained in:
2019-10-19 21:59:17 +02:00
parent 2248e25aec
commit ed3ac2abcb
5 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1 @@
DROP TABLE notifications;

View File

@@ -0,0 +1,6 @@
CREATE TABLE notifications (
id INTEGER PRIMARY KEY NOT NULL,
player_id INTEGER NOT NULL,
text VARCHAR NOT NULL,
FOREIGN KEY (player_id) REFERENCES players(id)
);