低空智控平台 后端go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
681 B

package model
import "time"
type LiveCallbackEvent struct {
EventID string `gorm:"primaryKey;column:event_id;type:VARCHAR(256);not null" json:"eventId"`
StreamName string `gorm:"column:stream_name;type:VARCHAR(128);not null" json:"streamName"`
EventType string `gorm:"column:event_type;type:VARCHAR(32);not null" json:"eventType"`
PayloadHash string `gorm:"column:payload_hash;type:CHAR(64);not null" json:"payloadHash"`
ReceivedAt time.Time `gorm:"column:received_at;not null" json:"receivedAt"`
ProcessedAt *time.Time `gorm:"column:processed_at" json:"processedAt"`
}
func (LiveCallbackEvent) TableName() string { return "live_callback_event" }