packages feed

hercules-ci-api-0.6.0.0: src/Hercules/API/Agents/ClusterJoinToken.hs

{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Agents.ClusterJoinToken where

import Hercules.API.Accounts.Account (Account)
import Hercules.API.Prelude

data ClusterJoinToken = ClusterJoinToken
  { id :: Id ClusterJoinToken,
    ownerId :: Id Account,
    creationTime :: UTCTime,
    -- TODO lastAccessTime :: Maybe UTCTime
    description :: Text
  }
  deriving (Generic, Show, Eq, NFData, ToJSON, FromJSON, ToSchema)