实现 猪舍相关路由组 和 猪圈相关路由组
This commit is contained in:
@@ -12,20 +12,45 @@ import (
|
||||
// 这个函数用于在数据库初始化时自动迁移所有的表结构。
|
||||
func GetAllModels() []interface{} {
|
||||
return []interface{}{
|
||||
// Core Models
|
||||
&User{},
|
||||
&UserActionLog{},
|
||||
|
||||
// Device Models
|
||||
&Device{},
|
||||
&AreaController{},
|
||||
&DeviceTemplate{},
|
||||
&SensorData{},
|
||||
&DeviceCommandLog{},
|
||||
|
||||
// Plan & Task Models
|
||||
&Plan{},
|
||||
&SubPlan{},
|
||||
&Task{},
|
||||
&PlanExecutionLog{},
|
||||
&TaskExecutionLog{},
|
||||
&PendingTask{},
|
||||
&SensorData{},
|
||||
&DeviceCommandLog{},
|
||||
&PendingCollection{},
|
||||
&AreaController{},
|
||||
&DeviceTemplate{},
|
||||
&UserActionLog{},
|
||||
|
||||
// Farm Asset Models
|
||||
&PigHouse{},
|
||||
&Pen{},
|
||||
|
||||
// Pig & Batch Models
|
||||
&PigBatch{},
|
||||
&PigBatchLog{},
|
||||
|
||||
// Feed Models
|
||||
&RawMaterial{},
|
||||
&RawMaterialPurchase{},
|
||||
&RawMaterialStockLog{},
|
||||
&FeedFormula{},
|
||||
&FeedFormulaComponent{},
|
||||
&FeedUsageRecord{},
|
||||
|
||||
// Medication Models
|
||||
&Medication{},
|
||||
&GroupMedicationLog{},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user