Adding click statistics

closes #2
This commit is contained in:
2021-02-09 21:30:11 +01:00
parent 32a2151ba0
commit d3465b4e10
6 changed files with 96 additions and 8 deletions
@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE clicks;
@@ -0,0 +1,13 @@
-- Your SQL goes here
CREATE TABLE clicks
(
id INTEGER PRIMARY KEY NOT NULL,
link INT NOT NULL,
created_at TIMESTAMP NOT NULL,
FOREIGN KEY
(link)
REFERENCES links
(id)
);