29 lines
1.7 KiB
Go
29 lines
1.7 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||
|
||
package models
|
||
|
||
import "platform/web/core"
|
||
|
||
const TableNameResourcePss = "resource_pss"
|
||
|
||
// ResourcePss mapped from table <resource_pss>
|
||
type ResourcePss struct {
|
||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:ID" json:"id"` // ID
|
||
ResourceID int32 `gorm:"column:resource_id;not null;comment:套餐ID" json:"resource_id"` // 套餐ID
|
||
Type int32 `gorm:"column:type;comment:套餐类型:1-包时,2-包量" json:"type"` // 套餐类型:1-包时,2-包量
|
||
Live int32 `gorm:"column:live;comment:可用时长(秒)" json:"live"` // 可用时长(秒)
|
||
Expire core.LocalDateTime `gorm:"column:expire;comment:过期时间" json:"expire"` // 过期时间
|
||
Quota int32 `gorm:"column:quota;comment:配额数量" json:"quota"` // 配额数量
|
||
Used int32 `gorm:"column:used;not null;comment:已用数量" json:"used"` // 已用数量
|
||
DailyLimit int32 `gorm:"column:daily_limit;not null;comment:每日限制" json:"daily_limit"` // 每日限制
|
||
DailyUsed int32 `gorm:"column:daily_used;not null;comment:今日已用数量" json:"daily_used"` // 今日已用数量
|
||
DailyLast core.LocalDateTime `gorm:"column:daily_last;comment:今日最后使用时间" json:"daily_last"` // 今日最后使用时间
|
||
}
|
||
|
||
// TableName ResourcePss's table name
|
||
func (*ResourcePss) TableName() string {
|
||
return TableNameResourcePss
|
||
}
|