aboutsummaryrefslogtreecommitdiff
path: root/migrations/2021-05-13-001536_links/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/2021-05-13-001536_links/up.sql')
-rw-r--r--migrations/2021-05-13-001536_links/up.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/migrations/2021-05-13-001536_links/up.sql b/migrations/2021-05-13-001536_links/up.sql
new file mode 100644
index 0000000..9d6ef7d
--- /dev/null
+++ b/migrations/2021-05-13-001536_links/up.sql
@@ -0,0 +1,7 @@
+CREATE TABLE links (
+ long TEXT NOT NULL,
+ short TEXT NOT NULL PRIMARY KEY,
+ disabled BOOLEAN NOT NULL DEFAULT FALSE,
+ ip TEXT NOT NULL,
+ uses INTEGER NOT NULL DEFAULT 0
+)