Files
HY2XS_flamy/apps/model/entity/traffic_aggregate_hourly.go
T

13 lines
440 B
Go

package entity
type TrafficAggregateHourly struct {
PeerId *int64 `gorm:"column:peer_id;default:0;primaryKey" json:"peerId"`
HourStart *int64 `gorm:"column:hour_start;default:0;primaryKey" json:"hourStart"`
RxBytes *int64 `gorm:"column:rx_bytes;default:0" json:"rxBytes"`
TxBytes *int64 `gorm:"column:tx_bytes;default:0" json:"txBytes"`
}
func (TrafficAggregateHourly) TableName() string {
return "traffic_aggregate_hourly"
}