2015-03-10 23:13:42 +00:00
|
|
|
User
|
|
|
|
ident Text
|
2015-07-20 20:10:30 +00:00
|
|
|
name Text
|
|
|
|
charId Int64
|
2015-03-10 23:13:42 +00:00
|
|
|
password Text Maybe
|
2015-07-20 20:10:30 +00:00
|
|
|
lastLogin UTCTime
|
|
|
|
tokenExpires UTCTime
|
|
|
|
accessToken Text
|
2015-08-06 22:07:48 +00:00
|
|
|
walletTimeout UTCTime
|
|
|
|
standingsTimeout UTCTime
|
2015-08-18 10:28:15 +00:00
|
|
|
balanceTimeout UTCTime
|
2015-08-06 22:07:48 +00:00
|
|
|
skillTimeout UTCTime
|
|
|
|
br Int -- Broker-Relations-Skill
|
|
|
|
acc Int -- Accounting-Skill
|
2015-08-18 10:28:15 +00:00
|
|
|
balanceCents Int64
|
2015-03-10 23:13:42 +00:00
|
|
|
UniqueUser ident
|
|
|
|
deriving Typeable
|
2015-04-26 20:18:24 +00:00
|
|
|
|
2015-03-10 23:13:42 +00:00
|
|
|
Email
|
|
|
|
email Text
|
2015-06-16 15:03:34 +00:00
|
|
|
user UserId
|
2015-03-10 23:13:42 +00:00
|
|
|
verkey Text Maybe
|
|
|
|
UniqueEmail email
|
|
|
|
|
2015-04-26 20:18:24 +00:00
|
|
|
Api
|
2015-07-22 00:01:58 +00:00
|
|
|
user UserId
|
2015-04-26 20:18:24 +00:00
|
|
|
keyID Int64
|
|
|
|
vCode Text
|
2015-07-20 20:10:30 +00:00
|
|
|
UniqueApiUser user
|
2015-04-26 20:18:24 +00:00
|
|
|
|
2015-08-06 22:07:48 +00:00
|
|
|
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
|
2015-08-16 22:14:33 +00:00
|
|
|
problematic Bool
|
2015-04-26 20:18:24 +00:00
|
|
|
|
2015-08-06 22:07:48 +00:00
|
|
|
CorpStandings
|
|
|
|
user UserId
|
|
|
|
corpId Int64
|
|
|
|
corpName Text
|
|
|
|
corpStanding Double
|
2015-04-26 20:18:24 +00:00
|
|
|
|
2015-08-06 22:07:48 +00:00
|
|
|
FactionStandings
|
|
|
|
user UserId
|
|
|
|
factionId Int64
|
|
|
|
factionName Text
|
|
|
|
factionStanding Double
|
2015-04-26 20:18:24 +00:00
|
|
|
|
|
|
|
|
2015-03-10 23:13:42 +00:00
|
|
|
-- By default this file is used in Model.hs (which is imported by Foundation.hs)
|