2015-04-04 06:46:33 +02:00
|
|
|
User
|
|
|
|
ident Text
|
|
|
|
balance Int
|
2016-03-17 23:59:52 +01:00
|
|
|
timestamp Day
|
2015-04-07 22:03:21 +02:00
|
|
|
email Text Maybe
|
2015-04-16 02:12:03 +02:00
|
|
|
avatar AvatarId Maybe
|
2018-10-02 20:25:32 +02:00
|
|
|
pin Text Maybe
|
2015-04-04 06:46:33 +02:00
|
|
|
UniqueUser ident
|
|
|
|
deriving Typeable Show
|
2015-10-11 20:07:12 +02:00
|
|
|
|
2015-04-04 06:46:33 +02:00
|
|
|
Beverage
|
|
|
|
ident Text
|
|
|
|
price Int
|
|
|
|
amount Int
|
|
|
|
alertAmount Int
|
2015-05-19 05:37:22 +02:00
|
|
|
correctedAmount Int default=0
|
2015-04-24 12:28:45 +02:00
|
|
|
ml Int default=500
|
2015-04-16 02:12:03 +02:00
|
|
|
avatar AvatarId Maybe
|
2015-10-11 20:07:12 +02:00
|
|
|
supplier SupplierId Maybe
|
|
|
|
maxAmount Int default=0
|
2017-02-04 02:05:57 +01:00
|
|
|
totalBought Int default=0
|
2015-10-11 20:07:12 +02:00
|
|
|
perCrate Int Maybe
|
|
|
|
artNr Text Maybe
|
|
|
|
pricePerCrate Int Maybe
|
2015-04-04 06:46:33 +02:00
|
|
|
UniqueBeverage ident
|
|
|
|
deriving Typeable Show
|
2015-10-11 20:07:12 +02:00
|
|
|
|
2015-04-04 06:46:33 +02:00
|
|
|
Transaction
|
|
|
|
description Text
|
|
|
|
amount Int
|
|
|
|
time UTCTime
|
|
|
|
deriving Typeable Show
|
2015-10-11 20:07:12 +02:00
|
|
|
|
2015-04-04 06:46:33 +02:00
|
|
|
Cashier
|
|
|
|
balance Int
|
2015-04-09 17:28:08 +02:00
|
|
|
created UTCTime default=now()
|
2015-04-10 14:50:44 +02:00
|
|
|
deriving Typeable Show
|
2015-10-11 20:07:12 +02:00
|
|
|
|
2015-04-10 14:50:44 +02:00
|
|
|
CashCheck
|
|
|
|
balance Int
|
|
|
|
time UTCTime
|
2015-04-04 06:46:33 +02:00
|
|
|
deriving Typeable Show
|
2015-10-11 20:07:12 +02:00
|
|
|
|
2015-04-16 02:12:03 +02:00
|
|
|
Avatar
|
|
|
|
ident Text
|
|
|
|
data ByteString
|
2015-09-16 20:28:30 +02:00
|
|
|
hash ByteString default='fill_me!'
|
2015-04-16 02:12:03 +02:00
|
|
|
deriving Typeable Show
|
2015-10-11 20:07:12 +02:00
|
|
|
|
2015-07-21 09:14:38 +02:00
|
|
|
Barcode
|
|
|
|
code Text
|
|
|
|
isUser Bool
|
|
|
|
user UserId Maybe
|
|
|
|
bev BeverageId Maybe
|
|
|
|
UniqueBarcode code
|
|
|
|
deriving Show
|
2015-04-04 06:46:33 +02:00
|
|
|
|
2015-10-11 20:07:12 +02:00
|
|
|
Supplier
|
|
|
|
ident Text
|
|
|
|
address Textarea
|
|
|
|
tel Text
|
|
|
|
email Text
|
|
|
|
customerId Text
|
|
|
|
avatar AvatarId Maybe
|
|
|
|
UniqueSupplier ident
|
|
|
|
deriving Show
|
|
|
|
|
2015-04-04 06:46:33 +02:00
|
|
|
-- By default this file is used in Model.hs (which is imported by Foundation.hs)
|