beautify auth init query

This commit is contained in:
nek0 2019-08-10 11:41:57 +02:00
parent d5abbeef21
commit 24cdc4a53c

View file

@ -50,10 +50,10 @@ import Model.User
initToken :: PGS.Query
initToken = mconcat
[ "create table if not exists \"token\" ("
, "token_string bytea not null primary key,"
, "token_user integer references \"user\"(user_id) not null,"
, "token_expiry timestamptz not null"
[ "CREATE TABLE IF NOT EXISTS \"token\" ("
, "token_string BYTEA NOT NULL PRIMARY KEY,"
, "token_user INTEGER REFERENCES \"user\"(user_id) NOT NULL,"
, "token_expiry TIMESTAMPTZ NOT NULL"
, ")"
]