mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 21:12:33 +00:00
30 lines
2.1 KiB
Go
30 lines
2.1 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 TableNameLegendScaleTemplate = "legend_scale_template"
|
||
|
||
// LegendScaleTemplate 传奇比例模板
|
||
type LegendScaleTemplate struct {
|
||
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
|
||
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户uid" json:"merchant_uid"` // 商户uid
|
||
TemplateName string `gorm:"column:template_name;not null;default:OK;comment:模板名称" json:"template_name"` // 模板名称
|
||
UserUID string `gorm:"column:user_uid;not null;default:role;comment:用户标识" json:"user_uid"` // 用户标识
|
||
UserWarn string `gorm:"column:user_warn;comment:用户标识提醒" json:"user_warn"` // 用户标识提醒
|
||
MoneyType string `gorm:"column:money_type;not null;default:any;comment:金额类型,any-任意金额,fix-固定金额" json:"money_type"` // 金额类型,any-任意金额,fix-固定金额
|
||
PresentType string `gorm:"column:present_type;not null;default:close;comment:赠送方式,close-关闭,fix-固定金额的赠送,scale-按按百分比赠送" json:"present_type"` // 赠送方式,close-关闭,fix-固定金额的赠送,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"` // 创建时间
|
||
}
|
||
|
||
// TableName LegendScaleTemplate's table name
|
||
func (*LegendScaleTemplate) TableName() string {
|
||
return TableNameLegendScaleTemplate
|
||
}
|