2018-05-19 11:23:02 +02:00
|
|
|
-- Your SQL goes here
|
|
|
|
CREATE TABLE reshares (
|
2018-09-15 13:38:09 +02:00
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
2018-05-19 11:23:02 +02:00
|
|
|
user_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL,
|
|
|
|
post_id INTEGER REFERENCES posts(id) ON DELETE CASCADE NOT NULL,
|
|
|
|
ap_url VARCHAR NOT NULL DEFAULT '',
|
2018-09-15 13:38:09 +02:00
|
|
|
creation_date INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP
|
2018-05-19 11:23:02 +02:00
|
|
|
)
|