feat: train record session.

This commit is contained in:
2026-05-02 12:52:49 +08:00
parent f81ee19bed
commit 44ad9ea7f6
4 changed files with 126 additions and 0 deletions
+2
View File
@@ -66,6 +66,8 @@ type MqttTrainingSessionRecord struct {
FlavorType string `gorm:"size:64;index" json:"flavorType"`
RawFlavor string `gorm:"size:64" json:"rawFlavor"`
AppName string `gorm:"size:255" json:"appName"`
TrainId string `gorm:"size:255;index" json:"trainId"`
PeopleNum int `gorm:"type:int" json:"peopleNum"`
StartedAt *int64 `gorm:"type:bigint;index" json:"startedAt"`
EndedAt *int64 `gorm:"type:bigint;index" json:"endedAt"`
PublishedAt int64 `gorm:"type:bigint;index" json:"publishedAt"`