blob: 87c7aae62c27656fc4af7ceadd36d68256c97f97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module Common.Model.IncomeHeader
( IncomeHeader(..)
) where
import Data.Aeson (FromJSON, ToJSON)
import Data.Map (Map)
import Data.Time.Calendar (Day)
import GHC.Generics (Generic)
import Common.Model.User (UserId)
data IncomeHeader = IncomeHeader
{ _incomeHeader_since :: Maybe Day
, _incomeHeader_byUser :: Map UserId Int
} deriving (Show, Generic)
instance FromJSON IncomeHeader
instance ToJSON IncomeHeader
|