Files
kami_scripts/order/model/legend_scale_template.gen.go

30 lines
2.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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
}