mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
983fc2ad47
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8800 GitOrigin-RevId: e5e10f31c6cc8953a8ee947441a7f80b0e9b5e5e
24 lines
692 B
Haskell
24 lines
692 B
Haskell
{-# LANGUAGE UndecidableInstances #-}
|
|
|
|
module Hasura.LogicalModel.IR
|
|
( LogicalModel (..),
|
|
)
|
|
where
|
|
|
|
import Data.HashMap.Strict.InsOrd qualified as InsOrd
|
|
import Hasura.LogicalModel.Types (LogicalModelField, LogicalModelName)
|
|
import Hasura.Prelude hiding (first)
|
|
import Hasura.RQL.Types.Backend (Backend (..))
|
|
import Hasura.SQL.Backend (BackendType)
|
|
|
|
-- | Description of a logical model for use in IR
|
|
data LogicalModel (b :: BackendType) = LogicalModel
|
|
{ lmName :: LogicalModelName,
|
|
lmFields :: InsOrd.InsOrdHashMap (Column b) (LogicalModelField b)
|
|
}
|
|
deriving (Generic)
|
|
|
|
deriving instance (Backend b) => Eq (LogicalModel b)
|
|
|
|
deriving instance (Backend b) => Show (LogicalModel b)
|