neat/config/models

88 lines
2.0 KiB
Plaintext

User
ident Text
name Text
charId Int64
password Text Maybe
lastLogin UTCTime
tokenExpires UTCTime
accessToken Text
walletTimeout UTCTime
standingsTimeout UTCTime
balanceTimeout UTCTime
skillTimeout UTCTime
orderTimeout UTCTime
br Int -- Broker-Relations-Skill
acc Int -- Accounting-Skill
balanceCents Int64
stockCents Int64
escrowCents Int64
UniqueUser ident
deriving Typeable
Email
email Text
user UserId
verkey Text Maybe
UniqueEmail email
Api
user UserId
keyID Int64
vCode Text
UniqueApiUser user
Transaction
user UserId
dateTime UTCTime
transId Int64
quantity Int64
inStock Int64 -- still to process. Positive for Buy-Orders, negative for Sell
typeName Text
typeId Int64
priceCents Int64
clientId Int64
clientName Text
stationId Int64
stationName Text
transIsSell Bool -- True = sell-order, False = buy-order
transForCorp Bool -- True = corp-order, False = personal order
journalTransId Int64
profit Int64 Maybe --profit on this transaction
tax Int64 Maybe -- tax paid for selling
fee Int64 Maybe -- broker-fee for putting order up
secondsToSell Int64 Maybe --avg time this item needed to sell
noTax Bool -- True if no taxes should be calculated
problematic Bool
CorpStandings
user UserId
corpId Int64
corpName Text
corpStanding Double
FactionStandings
user UserId
factionId Int64
factionName Text
factionStanding Double
Order
user UserId
orderId Int64
charId Int64
stationId Int64
volEntered Int64
volRemaining Int64
minVolume Int64
orderState Int32 --no custom field as this forces string-comparisons. Use toEnum/fromEnum to get an Int
typeId Int64
range Int32 --same as orderState
accountKey Int32
duration Int32
escrowCents Int64
priceCents Int64
isSell Bool
issued UTCTime
-- By default this file is used in Model.hs (which is imported by Foundation.hs)