// 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 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 core.LocalDateTime `gorm:"column:expire;comment:过期时间" json:"expire"` // 过期时间 Used bool `gorm:"column:used;comment:是否已使用" json:"used"` // 是否已使用 } // TableName ResourcePsr's table name func (*ResourcePsr) TableName() string { return TableNameResourcePsr }