device_net_config.go 534 B

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