{-# LANGUAGE DeriveGeneric #-} module Model.Json.PaymentCategory ( PaymentCategory(..) ) where import GHC.Generics import Data.Aeson import Data.Text (Text) import Model.Database (CategoryId) data PaymentCategory = PaymentCategory { name :: Text , category :: CategoryId } deriving (Show, Generic) instance ToJSON PaymentCategory