DbStructure compiles

This commit is contained in:
Joe Nelson
2016-01-24 18:09:18 -08:00
parent 4b515c5df4
commit abc30d5170
2 changed files with 15 additions and 16 deletions
+4 -3
View File
@@ -5,6 +5,7 @@ import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString as BS
import qualified Data.Vector as V
import Data.Aeson
import GHC.Int (Int32)
data DbStructure = DbStructure {
dbTables :: [Table]
@@ -31,12 +32,12 @@ data Column =
Column {
colTable :: Table
, colName :: Text
, colPosition :: Int
, colPosition :: Int32
, colNullable :: Bool
, colType :: Text
, colUpdatable :: Bool
, colMaxLen :: Maybe Int
, colPrecision :: Maybe Int
, colMaxLen :: Maybe Int32
, colPrecision :: Maybe Int32
, colDefault :: Maybe Text
, colEnum :: [Text]
, colFK :: Maybe ForeignKey