2 Module : Gargantext.Database.Schema.ContextContext
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
12 {-# OPTIONS_GHC -fno-warn-orphans #-}
14 {-# LANGUAGE Arrows #-}
15 {-# LANGUAGE FunctionalDependencies #-}
16 {-# LANGUAGE QuasiQuotes #-}
17 {-# LANGUAGE TemplateHaskell #-}
19 module Gargantext.Database.Schema.NodeContext_NodeContext where
21 import Gargantext.Core.Types
22 import Gargantext.Database.Schema.Prelude
23 import Gargantext.Prelude
27 data NodeContext_NodeContextPoly nodecontext1 nodecontext2
28 = NodeContext_NodeContext { _ncnc_nodecontext1 :: !nodecontext1
29 , _ncnc_nodecontext2 :: !nodecontext2
32 type NodeContext_NodeContextWrite = NodeContext_NodeContextPoly (Column (SqlInt4))
35 type NodeContext_NodeContextRead = NodeContext_NodeContextPoly (Column (SqlInt4))
38 type NodeContext_NodeContextReadNull = NodeContext_NodeContextPoly (Column (Nullable SqlInt4))
39 (Column (Nullable SqlInt4))
41 type NodeContext_NodeContext = NodeContext_NodeContextPoly NodeContextId NodeContextId
43 $(makeAdaptorAndInstance "pNodeContext_NodeContext" ''NodeContext_NodeContextPoly)
44 makeLenses ''NodeContext_NodeContextPoly
46 nodeContext_NodeContextTable :: Table NodeContext_NodeContextWrite NodeContext_NodeContextRead
47 nodeContext_NodeContextTable =
48 Table "nodescontexts_nodescontexts"
49 ( pNodeContext_NodeContext
50 NodeContext_NodeContext { _ncnc_nodecontext1 = requiredTableField "nodescontexts1"
51 , _ncnc_nodecontext2 = requiredTableField "nodescontexts2"
54 queryNodeContext_NodeContextTable :: Query NodeContext_NodeContextRead
55 queryNodeContext_NodeContextTable = selectTable nodeContext_NodeContextTable