module Model.Types.School where

import Import.NoModel
import Model.Types.TH.PathPiece

data SchoolFunction
  = SchoolAdmin
  | SchoolLecturer
  | SchoolEvaluation
  | SchoolExamOffice
  | SchoolAllocation
  deriving (Eq, Ord, Read, Show, Enum, Bounded, Generic, Typeable)
  deriving anyclass (Universe, Finite, Hashable, NFData)

nullaryPathPiece ''SchoolFunction $ camelToPathPiece' 1
pathPieceJSON ''SchoolFunction
pathPieceJSONKey ''SchoolFunction
derivePersistFieldPathPiece ''SchoolFunction
pathPieceBinary ''SchoolFunction
