module Common.Model.CreateIncomeForm
  ( CreateIncomeForm(..)
  ) where

import           Data.Aeson   (FromJSON, ToJSON)
import           Data.Text    (Text)
import           GHC.Generics (Generic)

data CreateIncomeForm = CreateIncomeForm
  { _createIncomeForm_amount :: Text
  , _createIncomeForm_date   :: Text
  } deriving (Show, Generic)

instance FromJSON CreateIncomeForm
instance ToJSON CreateIncomeForm