You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
657 B
Go

// Package model -----------------------------
// @file : boxRelPin.go
// @author : JJXu
// @contact : wavingbear@163.com
// @time : 2024/7/1 下午3:06
// -------------------------------------------
package model
type BoxRelPin struct {
Model
DeviceSn string `gorm:"column:device_sn;comment:硬件设备序列号"`
BoxId int `gorm:"column:box_id;comment:盒子ID"`
PinId int `gorm:"column:pin_id;comment:引脚ID"`
DevicePin *DevicePin `gorm:"foreignKey:PinId;"`
Color string `gorm:"column:color;default:;comment:颜色 r,g,b,y,*"`
}
func (d BoxRelPin) TableName() string {
return "box_rel_pin"
}