@@ -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)
|
||||
);
|
||||
Reference in New Issue
Block a user