summaryrefslogtreecommitdiffstats
path: root/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20221003064044_add-likes.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/migrations/20221003064044_add-likes.sql b/migrations/20221003064044_add-likes.sql
new file mode 100644
index 0000000..c94d488
--- /dev/null
+++ b/migrations/20221003064044_add-likes.sql
@@ -0,0 +1,6 @@
+CREATE TABLE likes (
+ id SERIAL PRIMARY KEY,
+ user_id INTEGER REFERENCES users(id) ON DELETE SET NULL,
+ model_id INTEGER REFERENCES models(id) ON DELETE SET NULL,
+ created TIMESTAMP NOT NULL
+);