aboutsummaryrefslogtreecommitdiff
path: root/src/server/Model/Json/PaymentCategory.hs
blob: edd438875f3cba218170f0eb50c9d6506dc1560c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{-# 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