Here's the schema_types.nim file, sorry I should have included this in my
original post. The consts could be enums.
import options
const
snakeCase* = "snakeCase"
stringType* = "string"
ulidGenerator* = "ulid"
autoGenerateConstraint* = "autoGenerate"
notNullConstraint* = "notNull"
type
MyContext* = object
name*: string
FkReference* = object
model*: string
refCol*: string
Field* = object
name*: string
fieldType*: string
constraints*: seq[string]
autoGenerate*: Option[string]
fkReference*: Option[FkReference]
Fields* = seq[Field]
Index* = object
name*: Option[string]
columns*: seq[string]
Indexes* = seq[Index]
TableOptions* = object
namingCase*: string
Model* = object
name*: string
description*: string
tableOptions*: TableOptions
fields*: Fields
indexes*: Indexes
Run