func (e *CharField) FieldType() int {
	return TypeVarCharField
}
FieldType return the enum type
package orm
import (
	"fmt"
	"strconv"
	"time"
)
const (
	TypeBooleanField = 1 << iota
	TypeVarCharField
	TypeCharField
	TypeTextField
	TypeTimeField
	TypeDateField
	TypeDateTimeField
	TypeBitField
	TypeSmallIntegerField
	TypeIntegerField
	TypeBigIntegerField
	TypePositiveBitField
	TypePositiveSmallIntegerField
	TypePositiveIntegerField
	TypePositiveBigIntegerField
	TypeFloatField
	TypeDecimalField
	TypeJSONField
	TypeJsonbField
	RelForeignKey
	RelOneToOne
	RelManyToMany
	RelReverseOne
	RelReverseMany
)
const (
	IsIntegerField         = ^-TypePositiveBigIntegerField >> 6 << 7
	IsPositiveIntegerField = ^-TypePositiveBigIntegerField >> 10 << 11
	IsRelField             = ^-RelReverseMany >> 18 << 19
	IsFieldType            = ^-RelReverseMany<<1 + 1
)
type BooleanField bool
func (e BooleanField) Value() bool {
	return bool(e)
}
func (e *BooleanField) Set(d bool) {
	*e = BooleanField(d)
}
func (e *BooleanField) String() string {
	return strconv.FormatBool(e.Value())
}
func (e *BooleanField) FieldType() int {
	return TypeBooleanField
}
func (e *BooleanField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case bool:
		e.Set(d)
	case string:
		v, err := StrTo(d).Bool()
		if err == nil {
			e.Set(v)
		}
		return err
	default:
		return fmt.Errorf("<BooleanField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *BooleanField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(BooleanField)
type CharField string
func (e CharField) Value() string {
	return string(e)
}
func (e *CharField) Set(d string) {
	*e = CharField(d)
}
func (e *CharField) String() string {
	return e.Value()
}