package model // UEEvent UE会话对象 ue_event type UEEvent struct { ID int64 `json:"id" gorm:"column:id;primaryKey;autoIncrement"` NeType string `json:"neType" gorm:"column:ne_type"` NeName string `json:"neName" gorm:"column:ne_name"` RmUID string `json:"rmUID" gorm:"column:rm_uid"` // 可能没有 Timestamp int64 `json:"timestamp" gorm:"column:timestamp"` // 接收到时间 EventType string `json:"eventType" gorm:"column:event_type"` // 事件类型 EventJSONStr string `json:"eventJSON" gorm:"column:event_json"` // data JSON String CreatedAt int64 `json:"createdAt" gorm:"column:created_at"` // 记录创建存储毫秒 } // TableName 表名称 func (*UEEvent) TableName() string { return "ue_event" }