18 lines
710 B
Go
18 lines
710 B
Go
package model
|
|
|
|
// CDREvent CDR会话对象 cdr_event
|
|
type CDREvent 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"` // 接收到的timestamp秒级存储毫秒时间戳
|
|
CdrJson string `json:"cdrJSON" gorm:"column:cdr_json"` // data JSON String
|
|
CreatedAt int64 `json:"createdAt" gorm:"column:created_at"` // 记录创建存储毫秒
|
|
}
|
|
|
|
// TableName 表名称
|
|
func (*CDREvent) TableName() string {
|
|
return "cdr_event"
|
|
}
|