Remove live.go from models (#61742)

* Remove live.go from models

* Change Id to ID

* Add xorm tags
This commit is contained in:
idafurjes
2023-01-19 18:10:40 +01:00
committed by GitHub
parent c104cc7020
commit 8cbcdf1c26
6 changed files with 18 additions and 105 deletions
+4 -4
View File
@@ -68,20 +68,20 @@ type ChannelHandlerFactory interface {
}
type LiveMessage struct {
Id int64
OrgId int64
ID int64 `xorm:"pk autoincr 'id'"`
OrgID int64 `xorm:"org_id"`
Channel string
Data json.RawMessage
Published time.Time
}
type SaveLiveMessageQuery struct {
OrgId int64
OrgID int64 `xorm:"org_id"`
Channel string
Data json.RawMessage
}
type GetLiveMessageQuery struct {
OrgId int64
OrgID int64 `xorm:"org_id"`
Channel string
}