@@ -16,6 +16,7 @@ const (
// database column
type Column struct {
Name string
+ TableName string
FieldName string
SQLType SQLType
Length int
@@ -42,6 +43,7 @@ type Column struct {
func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable bool) *Column {
return &Column{
Name: name,
+ TableName: "",
FieldName: fieldName,
SQLType: sqlType,
Length: len1,
@@ -207,6 +207,7 @@ var (
StringType = reflect.TypeOf(c_EMPTY_STRING)
BoolType = reflect.TypeOf(c_BOOL_DEFAULT)
ByteType = reflect.TypeOf(c_BYTE_DEFAULT)
+ BytesType = reflect.SliceOf(ByteType)
TimeType = reflect.TypeOf(c_TIME_DEFAULT)
)