beautiy init user query
This commit is contained in:
parent
a8ff7949f6
commit
6910efca00
1 changed files with 10 additions and 10 deletions
|
@ -35,16 +35,16 @@ import Types.Reader
|
||||||
|
|
||||||
initUser :: PGS.Query
|
initUser :: PGS.Query
|
||||||
initUser = mconcat
|
initUser = mconcat
|
||||||
[ "create table if not exists \"user\" ("
|
[ "CREATE TABLE IF NOT EXISTS \"user\" ("
|
||||||
, "user_id serial primary key,"
|
, "user_id SERIAL PRIMARY KEY,"
|
||||||
, "user_ident text not null,"
|
, "user_ident TEXT NOT NULL,"
|
||||||
, "user_balance integer not null,"
|
, "user_balance INTEGER NOT NULL,"
|
||||||
, "user_timestamp date not null,"
|
, "user_timestamp DATE NOT NULL,"
|
||||||
, "user_email text,"
|
, "user_email TEXT,"
|
||||||
, "user_avatar integer,"
|
, "user_avatar INTEGER,"
|
||||||
, "user_salt bytea not null,"
|
, "user_salt BYTEA NOT NULL,"
|
||||||
, "user_hash bytea,"
|
, "user_hash BYTEA,"
|
||||||
, "user_algo integer"
|
, "user_algo INTEGER"
|
||||||
, ")"
|
, ")"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue