33 lines
1.7 KiB
Go
33 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/common"
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
const TableNameResourcePsr = "resource_psr"
|
|
|
|
// ResourcePsr mapped from table <resource_psr>
|
|
type ResourcePsr 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
|
|
Live int32 `gorm:"column:live;comment:轮换周期(秒)" json:"live"` // 轮换周期(秒)
|
|
Conn int32 `gorm:"column:conn;comment:最大连接数" json:"conn"` // 最大连接数
|
|
Expire time.Time `gorm:"column:expire;comment:过期时间" json:"expire"` // 过期时间
|
|
Used bool `gorm:"column:used;comment:是否已使用" json:"used"` // 是否已使用
|
|
CreatedAt common.LocalDateTime `gorm:"column:created_at;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
|
|
UpdatedAt common.LocalDateTime `gorm:"column:updated_at;default:CURRENT_TIMESTAMP;comment:更新时间" json:"updated_at"` // 更新时间
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除时间" json:"deleted_at"` // 删除时间
|
|
}
|
|
|
|
// TableName ResourcePsr's table name
|
|
func (*ResourcePsr) TableName() string {
|
|
return TableNameResourcePsr
|
|
}
|