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

28 lines
1.4 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 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
}