module Database.PostgreSQL.PQTypes.Versions where

import Database.PostgreSQL.PQTypes.Model

tableVersions :: Table
tableVersions :: Table
tableVersions = Table
tblTable {
    tblName :: RawSQL ()
tblName = RawSQL ()
"table_versions"
  , tblVersion :: Int32
tblVersion = Int32
1
  , tblColumns :: [TableColumn]
tblColumns = [
      TableColumn
tblColumn { colName :: RawSQL ()
colName = RawSQL ()
"name", colType :: ColumnType
colType = ColumnType
TextT, colNullable :: Bool
colNullable = Bool
False }
    , TableColumn
tblColumn { colName :: RawSQL ()
colName = RawSQL ()
"version", colType :: ColumnType
colType = ColumnType
IntegerT, colNullable :: Bool
colNullable = Bool
False }
    ]
  , tblPrimaryKey :: Maybe PrimaryKey
tblPrimaryKey = RawSQL () -> Maybe PrimaryKey
pkOnColumn RawSQL ()
"name"
  }