aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/CreateIncome.hs
blob: 644a51c7c7d06b0381b6cb3dc2105632aa6e498b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Common.Model.CreateIncome
  ( CreateIncome(..)
  ) where

import           Data.Aeson         (FromJSON)
import           Data.Time.Calendar (Day)
import           GHC.Generics       (Generic)

data CreateIncome = CreateIncome
  { _createIncome_date   :: Day
  , _createIncome_amount :: Int
  } deriving (Show, Generic)

instance FromJSON CreateIncome