beautify auth init query
This commit is contained in:
parent
d5abbeef21
commit
24cdc4a53c
1 changed files with 4 additions and 4 deletions
|
@ -50,10 +50,10 @@ import Model.User
|
||||||
|
|
||||||
initToken :: PGS.Query
|
initToken :: PGS.Query
|
||||||
initToken = mconcat
|
initToken = mconcat
|
||||||
[ "create table if not exists \"token\" ("
|
[ "CREATE TABLE IF NOT EXISTS \"token\" ("
|
||||||
, "token_string bytea not null primary key,"
|
, "token_string BYTEA NOT NULL PRIMARY KEY,"
|
||||||
, "token_user integer references \"user\"(user_id) not null,"
|
, "token_user INTEGER REFERENCES \"user\"(user_id) NOT NULL,"
|
||||||
, "token_expiry timestamptz not null"
|
, "token_expiry TIMESTAMPTZ NOT NULL"
|
||||||
, ")"
|
, ")"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue