booth.go 488 B

123456789101112131415
  1. package dao
  2. import "server/global"
  3. type Booth struct {
  4. global.GVA_MODEL
  5. BoothCode string `gorm:"size:50;not null;uniqueIndex" json:"booth_code"` // 岗亭编码
  6. BoothName string `gorm:"size:100;not null" json:"booth_name"` // 岗亭名称
  7. IPAddress string `gorm:"size:50" json:"ip_address"` // IP地址
  8. Description string `gorm:"size:200" json:"description"` // 备注
  9. }
  10. func (Booth) TableName() string {
  11. return "booth"
  12. }