SysDomain_gen.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package models
  2. import (
  3. "time"
  4. )
  5. type SysDomain struct {
  6. //主键
  7. Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
  8. //名称
  9. Name string `xorm:"'name' varchar(36) notnull "json:"name"`
  10. //全名
  11. FullName string `xorm:"'full_name' varchar(36) notnull "json:"full_name"`
  12. //负责人
  13. ContactName string `xorm:"'contact_name' varchar(36) notnull "json:"contact_name"`
  14. //负责人邮箱
  15. ContactEmail string `xorm:"'contact_email' varchar(50) notnull "json:"contact_email"`
  16. //负责人电话
  17. ContactMobile string `xorm:"'contact_mobile' varchar(50) notnull "json:"contact_mobile"`
  18. //数据库链接串
  19. DataSource string `xorm:"'data_source' varchar(200) notnull "json:"data_source"`
  20. //网址
  21. DomainUrl string `xorm:"'domain_url' varchar(200) notnull "json:"domain_url"`
  22. //域类型
  23. Type int32 `xorm:"'type' notnull "json:"type"`
  24. //状态 0:禁用 1:正常
  25. Status int32 `xorm:"'status' notnull "json:"status"`
  26. //域
  27. Domain string `xorm:"'domain' varchar(36) notnull "json:"domain"`
  28. //创建人
  29. CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
  30. //创建时间
  31. CreateTime time.Time `xorm:"'create_time' notnull "json:"create_time"`
  32. //最后更新人
  33. LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
  34. //最后更新时间
  35. LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
  36. //是否删除 1:删除 0:正常
  37. DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
  38. }
  39. func (t *SysDomain) TableName() string {
  40. return "sys_domain"
  41. }
  42. func init() {
  43. RegisterModel(new(SysDomain))
  44. }