2018-06-20 20:22:34 +02:00
|
|
|
-- Your SQL goes here
|
|
|
|
CREATE TABLE mentions (
|
2018-09-17 11:08:58 +02:00
|
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
2018-06-20 20:22:34 +02:00
|
|
|
mentioned_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL,
|
|
|
|
post_id INTEGER REFERENCES posts(id) ON DELETE CASCADE,
|
2018-09-15 13:38:09 +02:00
|
|
|
comment_id INTEGER REFERENCES comments(id) ON DELETE CASCADE,
|
|
|
|
ap_url VARCHAR NOT NULL DEFAULT ''
|
2018-06-20 20:22:34 +02:00
|
|
|
)
|