14 lines
432 B
Go
14 lines
432 B
Go
|
|
package models
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
// LogsUserBandwidth 用户带宽日志表
|
||
|
|
type LogsUserBandwidth struct {
|
||
|
|
ID int32 `json:"id" gorm:"column:id;not null"` // 日志ID
|
||
|
|
UserID int32 `json:"user_id" gorm:"column:user_id"` // 用户ID
|
||
|
|
Bandwidth int32 `json:"bandwidth" gorm:"column:bandwidth"` // 带宽使用量(KB)
|
||
|
|
Time time.Time `json:"time" gorm:"column:time"` // 记录时间
|
||
|
|
}
|