func (e PositiveBigIntegerField) Value() uint64 {
	return uint64(e)
}
Value return uint64
package orm
import (
	"fmt"
	"strconv"
	"time"
)
const (
	TypeBooleanField = 1 << iota
	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 >> 5 << 6
	IsPositiveIntegerField = ^-TypePositiveBigIntegerField >> 9 << 10
	IsRelField             = ^-RelReverseMany >> 17 << 18
	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()
}
func (e *CharField) FieldType() int {
	return TypeCharField
}
func (e *CharField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case string:
		e.Set(d)
	default:
		return fmt.Errorf("<CharField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *CharField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(CharField)
type TimeField time.Time
func (e TimeField) Value() time.Time {
	return time.Time(e)
}
func (e *TimeField) Set(d time.Time) {
	*e = TimeField(d)
}
func (e *TimeField) String() string {
	return e.Value().String()
}
func (e *TimeField) FieldType() int {
	return TypeDateField
}
func (e *TimeField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case time.Time:
		e.Set(d)
	case string:
		v, err := timeParse(d, formatTime)
		if err != nil {
			e.Set(v)
		}
		return err
	default:
		return fmt.Errorf("<TimeField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *TimeField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(TimeField)
type DateField time.Time
func (e DateField) Value() time.Time {
	return time.Time(e)
}
func (e *DateField) Set(d time.Time) {
	*e = DateField(d)
}
func (e *DateField) String() string {
	return e.Value().String()
}
func (e *DateField) FieldType() int {
	return TypeDateField
}
func (e *DateField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case time.Time:
		e.Set(d)
	case string:
		v, err := timeParse(d, formatDate)
		if err != nil {
			e.Set(v)
		}
		return err
	default:
		return fmt.Errorf("<DateField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *DateField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(DateField)
type DateTimeField time.Time
func (e DateTimeField) Value() time.Time {
	return time.Time(e)
}
func (e *DateTimeField) Set(d time.Time) {
	*e = DateTimeField(d)
}
func (e *DateTimeField) String() string {
	return e.Value().String()
}
func (e *DateTimeField) FieldType() int {
	return TypeDateTimeField
}
func (e *DateTimeField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case time.Time:
		e.Set(d)
	case string:
		v, err := timeParse(d, formatDateTime)
		if err != nil {
			e.Set(v)
		}
		return err
	default:
		return fmt.Errorf("<DateTimeField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *DateTimeField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(DateTimeField)
type FloatField float64
func (e FloatField) Value() float64 {
	return float64(e)
}
func (e *FloatField) Set(d float64) {
	*e = FloatField(d)
}
func (e *FloatField) String() string {
	return ToStr(e.Value(), -1, 32)
}
func (e *FloatField) FieldType() int {
	return TypeFloatField
}
func (e *FloatField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case float32:
		e.Set(float64(d))
	case float64:
		e.Set(d)
	case string:
		v, err := StrTo(d).Float64()
		if err != nil {
			e.Set(v)
		}
	default:
		return fmt.Errorf("<FloatField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *FloatField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(FloatField)
type SmallIntegerField int16
func (e SmallIntegerField) Value() int16 {
	return int16(e)
}
func (e *SmallIntegerField) Set(d int16) {
	*e = SmallIntegerField(d)
}
func (e *SmallIntegerField) String() string {
	return ToStr(e.Value())
}
func (e *SmallIntegerField) FieldType() int {
	return TypeSmallIntegerField
}
func (e *SmallIntegerField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case int16:
		e.Set(d)
	case string:
		v, err := StrTo(d).Int16()
		if err != nil {
			e.Set(v)
		}
	default:
		return fmt.Errorf("<SmallIntegerField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *SmallIntegerField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(SmallIntegerField)
type IntegerField int32
func (e IntegerField) Value() int32 {
	return int32(e)
}
func (e *IntegerField) Set(d int32) {
	*e = IntegerField(d)
}
func (e *IntegerField) String() string {
	return ToStr(e.Value())
}
func (e *IntegerField) FieldType() int {
	return TypeIntegerField
}
func (e *IntegerField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case int32:
		e.Set(d)
	case string:
		v, err := StrTo(d).Int32()
		if err != nil {
			e.Set(v)
		}
	default:
		return fmt.Errorf("<IntegerField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *IntegerField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(IntegerField)
type BigIntegerField int64
func (e BigIntegerField) Value() int64 {
	return int64(e)
}
func (e *BigIntegerField) Set(d int64) {
	*e = BigIntegerField(d)
}
func (e *BigIntegerField) String() string {
	return ToStr(e.Value())
}
func (e *BigIntegerField) FieldType() int {
	return TypeBigIntegerField
}
func (e *BigIntegerField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case int64:
		e.Set(d)
	case string:
		v, err := StrTo(d).Int64()
		if err != nil {
			e.Set(v)
		}
	default:
		return fmt.Errorf("<BigIntegerField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *BigIntegerField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(BigIntegerField)
type PositiveSmallIntegerField uint16
func (e PositiveSmallIntegerField) Value() uint16 {
	return uint16(e)
}
func (e *PositiveSmallIntegerField) Set(d uint16) {
	*e = PositiveSmallIntegerField(d)
}
func (e *PositiveSmallIntegerField) String() string {
	return ToStr(e.Value())
}
func (e *PositiveSmallIntegerField) FieldType() int {
	return TypePositiveSmallIntegerField
}
func (e *PositiveSmallIntegerField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case uint16:
		e.Set(d)
	case string:
		v, err := StrTo(d).Uint16()
		if err != nil {
			e.Set(v)
		}
	default:
		return fmt.Errorf("<PositiveSmallIntegerField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *PositiveSmallIntegerField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(PositiveSmallIntegerField)
type PositiveIntegerField uint32
func (e PositiveIntegerField) Value() uint32 {
	return uint32(e)
}
func (e *PositiveIntegerField) Set(d uint32) {
	*e = PositiveIntegerField(d)
}
func (e *PositiveIntegerField) String() string {
	return ToStr(e.Value())
}
func (e *PositiveIntegerField) FieldType() int {
	return TypePositiveIntegerField
}
func (e *PositiveIntegerField) SetRaw(value interface{}) error {
	switch d := value.(type) {
	case uint32:
		e.Set(d)
	case string:
		v, err := StrTo(d).Uint32()
		if err != nil {
			e.Set(v)
		}
	default:
		return fmt.Errorf("<PositiveIntegerField.SetRaw> unknown value `%s`", value)
	}
	return nil
}
func (e *PositiveIntegerField) RawValue() interface{} {
	return e.Value()
}
var _ Fielder = new(PositiveIntegerField)
type PositiveBigIntegerField uint64