mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:47:10 +00:00
28 lines
1.4 KiB
Go
28 lines
1.4 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 model
|
||
|
||
import (
|
||
"time"
|
||
)
|
||
|
||
const TableNameLegendScalePresent = "legend_scale_present"
|
||
|
||
// LegendScalePresent 按百分比赠送
|
||
type LegendScalePresent struct {
|
||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
|
||
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
|
||
Money int32 `gorm:"column:money;not null;comment:金额,默认是0" json:"money"` // 金额,默认是0
|
||
PresentScale float64 `gorm:"column:present_scale;comment:赠送比例" json:"present_scale"` // 赠送比例
|
||
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
|
||
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
|
||
UID string `gorm:"column:uid;not null;default:唯一id" json:"uid"`
|
||
}
|
||
|
||
// TableName LegendScalePresent's table name
|
||
func (*LegendScalePresent) TableName() string {
|
||
return TableNameLegendScalePresent
|
||
}
|