2
3

tableheader.go 1.2 KB

1234567891011121314151617181920212223
  1. package tableheader
  2. import (
  3. "time"
  4. )
  5. type BaseTableheader struct {
  6. Id int `xorm:"not null pk autoincr comment('主键编号') INT(10)"`
  7. Name string `xorm:"not null comment('名称') VARCHAR(70)"`
  8. Code string `xorm:"not null comment('名称号') VARCHAR(10)"`
  9. Categorycode string `xorm:"not null comment('类别编码') VARCHAR(10)"`
  10. Categoryname string `xorm:"not null comment('类别名称') VARCHAR(20)"`
  11. IsManuf string `xorm:"not null comment('是否是制造商') VARCHAR(2)"`
  12. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  13. Isdelete int `xorm:"default 0 comment('是否以删除(0正常,1已删除)') INT(10)"`
  14. SortCode int `xorm:"default 0 comment('排序码') INT(10)"`
  15. Createon time.Time `xorm:"comment('创建时间') DATETIME"`
  16. Createuserid int `xorm:"comment('创建者编号 ') INT(10)"`
  17. Createby string `xorm:"comment('创建者') VARCHAR(50)"`
  18. Modifiedon time.Time `xorm:"comment('修改时间') DATETIME"`
  19. Modifieduserid int `xorm:"comment('修改者编号') INT(10)"`
  20. Modifiedby string `xorm:"comment('修改者') VARCHAR(50)"`
  21. }