col_schema function

Generate a table column schema manually or with a reference table