aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index bb9eb53..ea2fea1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -28,7 +28,8 @@ db.run(`
28 id INTEGER PRIMARY KEY AUTOINCREMENT, 28 id INTEGER PRIMARY KEY AUTOINCREMENT,
29 user_id INTEGER, 29 user_id INTEGER,
30 subreddit TEXT, 30 subreddit TEXT,
31 FOREIGN KEY(user_id) REFERENCES users(id) 31 FOREIGN KEY(user_id) REFERENCES users(id),
32 UNIQUE(user_id, subreddit)
32 ) 33 )
33`); 34`);
34 35