// 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 ( "time" "gorm.io/gorm" ) const TableNameResourcePsr = "resource_psr" // ResourcePsr mapped from table 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 time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间 UpdatedAt time.Time `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 }