beautiy init query
This commit is contained in:
parent
9ec49edcb5
commit
d5abbeef21
1 changed files with 10 additions and 10 deletions
|
@ -36,16 +36,16 @@ import Model.Amount
|
||||||
|
|
||||||
initProduct :: PGS.Query
|
initProduct :: PGS.Query
|
||||||
initProduct = mconcat
|
initProduct = mconcat
|
||||||
[ "create table if not exists \"product\" ("
|
[ "CREATE TABLE IF NOT EXISTS \"product\" ("
|
||||||
, "product_id serial primary key,"
|
, "product_id SERIAL PRIMARY KEY,"
|
||||||
, "product_ident varchar(128) not null,"
|
, "product_ident TEXT NOT NULL,"
|
||||||
, "product_ml integer not null,"
|
, "product_ml INTEGER NOT NULL,"
|
||||||
, "product_avatar integer,"
|
, "product_avatar INTEGER,"
|
||||||
, "product_supplier integer,"
|
, "product_supplier INTEGER,"
|
||||||
, "product_max_amount integer not null,"
|
, "product_max_amount INTEGER NOT NULL,"
|
||||||
, "product_amount_per_crate integer not null,"
|
, "product_amount_per_crate INTEGER NOT NULL,"
|
||||||
, "product_price_per_crate integer,"
|
, "product_price_per_crate INTEGER,"
|
||||||
, "product_art_nr varchar(128)"
|
, "product_art_nr TEXT"
|
||||||
, ")"
|
, ")"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue