From 682bba726dca2e33317876c459f6334ddf5f060a Mon Sep 17 00:00:00 2001
From: Guillaume Horel <guillaume.horel@gmail.com>
Date: Sun, 25 Jun 2017 18:42:33 -0400
Subject: add tokens table

---
 migrations/20170625150613_token.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 migrations/20170625150613_token.sql

(limited to 'migrations/20170625150613_token.sql')

diff --git a/migrations/20170625150613_token.sql b/migrations/20170625150613_token.sql
new file mode 100644
index 0000000..fa56fa2
--- /dev/null
+++ b/migrations/20170625150613_token.sql
@@ -0,0 +1,14 @@
+
+-- +goose Up
+-- SQL in section 'Up' is executed when this migration is applied
+
+CREATE TABLE tokens(
+    token text PRIMARY KEY,
+    created timestamp WITH time zone DEFAULT now(),
+    user_id integer REFERENCES users(user_id)
+);
+
+
+-- +goose Down
+-- SQL section 'Down' is executed when this migration is rolled back
+DROP TABLE tokens;
-- 
cgit v1.2.3-70-g09d2

