channel.go 630 B

12345678910111213141516
  1. package dao
  2. import "server/global"
  3. type Channel struct {
  4. global.GVA_MODEL
  5. ChannelCode string `gorm:"size:50;not null;uniqueIndex" json:"channel_code"` // 通道编码
  6. ChannelName string `gorm:"size:100;not null" json:"channel_name"` // 通道名称
  7. Direction string `gorm:"size:20;not null" json:"direction"` // 进出方向
  8. AllowTemporary bool `gorm:"not null" json:"allow_temporary"` // 是否允许临时车进出
  9. Description string `gorm:"size:200" json:"description"` // 备注
  10. }
  11. func (Channel) TableName() string {
  12. return "channel"
  13. }