feat: product.
This commit is contained in:
+4
-1
@@ -7,7 +7,10 @@ import (
|
||||
|
||||
// Gateway 代表一个物联网网关设备
|
||||
type Gateway struct {
|
||||
gorm.Model
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
||||
// MAC地址是网关的唯一标识
|
||||
MAC string `gorm:"size:32;uniqueIndex;not null" json:"mac"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user