blob: 7e712e84a509c7b20d7fa967e08e57cfdbac3ad1 (
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 (Eq, Show, Generic)
instance FromJSON IncomeHeader
instance ToJSON IncomeHeader
|