package models type TDwTableField struct { Id int32 `xorm:"not null pk autoincr INT(11)"` TableId int32 `xorm:"not null comment('哪张表') index INT(11)"` FieldName string `xorm:"not null comment('字段名称') VARCHAR(255)"` DataType string `xorm:"not null comment('数据类型') VARCHAR(255)"` FieldLength int32 `xorm:"not null comment('字段长度') INT(11)"` DecimalPointLength int32 `xorm:"not null default 0 comment('小数点后长度') INT(11)"` Comment string `xorm:"default 'NULL' comment('描述') VARCHAR(255)"` IsPk int32 `xorm:"not null default 0 comment('是否为主键') INT(255)"` }