refactor: split iot models by entity
This commit is contained in:
9
backend/api/internal/models/iot_migrate.go
Normal file
9
backend/api/internal/models/iot_migrate.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
func init() {
|
||||
database.AppendMigrate(&IotCommand{})
|
||||
database.AppendMigrate(&IotOutbox{})
|
||||
database.AppendMigrate(&IotDeviceMessage{})
|
||||
}
|
||||
Reference in New Issue
Block a user