summaryrefslogtreecommitdiff
path: root/migrations/2020-02-01-032552_strava_tokens/up.sql
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2020-01-31 22:59:10 -0500
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2020-01-31 22:59:10 -0500
commit263605f2b0404ffe04fedde644b0aaccc1e84b85 (patch)
treea54f1dcfcd78ec4b10834eb183ef29850538d12b /migrations/2020-02-01-032552_strava_tokens/up.sql
parent40b3e685b00f9a9f25908a85f79960913e668622 (diff)
Exchange and store strava tokens
Diffstat (limited to 'migrations/2020-02-01-032552_strava_tokens/up.sql')
-rw-r--r--migrations/2020-02-01-032552_strava_tokens/up.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/migrations/2020-02-01-032552_strava_tokens/up.sql b/migrations/2020-02-01-032552_strava_tokens/up.sql
new file mode 100644
index 0000000..bf7e9b1
--- /dev/null
+++ b/migrations/2020-02-01-032552_strava_tokens/up.sql
@@ -0,0 +1,6 @@
+create table strava_tokens (
+ username varchar not null primary key references users(username),
+ refresh_token varchar(64) not null,
+ access_token varchar(64) not null,
+ expires_at timestamptz not null
+);