1234567891011121314 |
- package models
- import "github.com/jinzhu/gorm"
- // DeviceNetConfig device net config hash
- // device is a product instance, which is managed by our platform
- type DeviceNetConfig struct {
- gorm.Model
- // universal device identifier, generated from vendorid-productid-deviceserial
- DeviceIdentifier string `gorm:"column:device_identifier;index;size:200"`
- // device secret which is auto generated by the platform
- MD5 string `gorm:"column:md5;size:32;not null"`
- Status int `gorm:"column:status"` // 状态(1:未确认2:确认)
- }
|