Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Add table for email_auth_nonces
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Jul 13, 2017
1 parent d7bde18 commit 6431268
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sql/branch.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BEGIN;
CREATE TYPE email_auth_intent AS ENUM ('sign-in');

CREATE TABLE email_auth_nonces
( id serial PRIMARY KEY
, email_address text NOT NULL
, intent email_auth_intent NOT NULL
, nonce text NOT NULL
, ctime timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP
, UNIQUE (nonce)
);
END;

0 comments on commit 6431268

Please sign in to comment.