$GENERATED_TS_COMMENT #from generateHelper import JsNameConverter #for $table in $tables export interface $JsNameConverter($table.name) { id: number #for $column in $table.columns ${column.name}: ${column.jstype} #end for } export const NULL_$JsNameConverter($table.name): $JsNameConverter($table.name) = { id: 0 #for $column in $table.columns ,${column.name}: #slurp #if $column.jstype == "string" '' #else if $column.jstype == "number" undefined #else if $column.jstype == "boolean" false #end if #end for } #end for