packages feed

hercules-ci-api-0.8.1.0: src/Hercules/API/State/ProjectState.hs

{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingStrategies #-}

module Hercules.API.State.ProjectState where

import Hercules.API.Prelude
import Hercules.API.Projects.Project (Project)
import Hercules.API.State.StateFile (StateFile)

data ProjectState = ProjectState
  { projectId :: Id Project,
    stateFiles :: Map Text StateFile
  }
  deriving (Generic, Show, Eq)
  deriving anyclass (NFData, ToJSON, FromJSON, ToSchema)