13 lines
439 B
Go
13 lines
439 B
Go
package entity
|
|
|
|
type TrafficAggregateDaily struct {
|
|
PeerId *int64 `gorm:"column:peer_id;default:0;primaryKey" json:"peerId"`
|
|
DayStart *int64 `gorm:"column:day_start;default:0;primaryKey" json:"dayStart"`
|
|
RxBytes *int64 `gorm:"column:rx_bytes;default:0" json:"rxBytes"`
|
|
TxBytes *int64 `gorm:"column:tx_bytes;default:0" json:"txBytes"`
|
|
}
|
|
|
|
func (TrafficAggregateDaily) TableName() string {
|
|
return "traffic_aggregate_daily"
|
|
}
|