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

50 lines
5.5 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 TableNameMerchantDeployInfo = "merchant_deploy_info"
// MerchantDeployInfo mapped from table <merchant_deploy_info>
type MerchantDeployInfo struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
Status string `gorm:"column:status;not null;default:active;comment:商户状态状态" json:"status"` // 商户状态状态
MerchantUID string `gorm:"column:merchant_uid;not null;comment:商户uid" json:"merchant_uid"` // 商户uid
PayType string `gorm:"column:pay_type;comment:支付配置" json:"pay_type"` // 支付配置
SingleRoadUID string `gorm:"column:single_road_uid;comment:单通道uid" json:"single_road_uid"` // 单通道uid
SingleRoadName string `gorm:"column:single_road_name;comment:单通道名称" json:"single_road_name"` // 单通道名称
SingleRoadPlatformRate string `gorm:"column:single_road_platform_rate;not null;comment:单通到平台净利率(关系映射)" json:"single_road_platform_rate"` // 单通到平台净利率(关系映射)
SingleRoadAgentRate float64 `gorm:"column:single_road_agent_rate;not null;default:0.000;comment:单通到代理净利率" json:"single_road_agent_rate"` // 单通到代理净利率
RollRoadCode string `gorm:"column:roll_road_code;comment:轮询通道编码" json:"roll_road_code"` // 轮询通道编码
RollRoadName string `gorm:"column:roll_road_name;comment:轮询通道名称" json:"roll_road_name"` // 轮询通道名称
RollRoadPlatformRate float64 `gorm:"column:roll_road_platform_rate;not null;default:0.000;comment:轮询通道平台净利率" json:"roll_road_platform_rate"` // 轮询通道平台净利率
RollRoadAgentRate float64 `gorm:"column:roll_road_agent_rate;not null;default:0.000;comment:轮询通道代理净利率" json:"roll_road_agent_rate"` // 轮询通道代理净利率
RestrictArea string `gorm:"column:restrict_area;comment:限制地区" json:"restrict_area"` // 限制地区
IsLoan string `gorm:"column:is_loan;not null;default:NO;comment:是否押款" json:"is_loan"` // 是否押款
LoanRate float64 `gorm:"column:loan_rate;not null;default:0.000;comment:押款比例默认是0" json:"loan_rate"` // 押款比例默认是0
LoanDays int32 `gorm:"column:loan_days;not null;comment:押款的天数默认0天" json:"loan_days"` // 押款的天数默认0天
UnfreezeHour int32 `gorm:"column:unfreeze_hour;not null;comment:每天解款的时间点,默认是凌晨" json:"unfreeze_hour"` // 每天解款的时间点,默认是凌晨
WaitUnfreezeAmount float64 `gorm:"column:wait_unfreeze_amount;comment:等待解款的金额" json:"wait_unfreeze_amount"` // 等待解款的金额
LoanAmount float64 `gorm:"column:loan_amount;comment:押款中的金额" json:"loan_amount"` // 押款中的金额
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"` // 创建时间
AutoSettle string `gorm:"column:auto_settle" json:"auto_settle"`
AutoPayfor string `gorm:"column:auto_payfor" json:"auto_payfor"`
IsRestrictAgent []uint8 `gorm:"column:is_restrict_agent;comment:是否检测代理" json:"is_restrict_agent"` // 是否检测代理
IsRestrictCardPass []uint8 `gorm:"column:is_restrict_card_pass;comment:是否限制卡密" json:"is_restrict_card_pass"` // 是否限制卡密
IsRestrictDevice []uint8 `gorm:"column:is_restrict_device;comment:是否限制设备" json:"is_restrict_device"` // 是否限制设备
IsRestrictIP []uint8 `gorm:"column:is_restrict_ip;comment:是否限制IP" json:"is_restrict_ip"` // 是否限制IP
IsRestrictInternalIP []uint8 `gorm:"column:is_restrict_internal_ip;comment:是否限制局域网IP" json:"is_restrict_internal_ip"` // 是否限制局域网IP
SubmitStrategy string `gorm:"column:submit_strategy;default:DIRECT;comment:订单提交策略DIRECT-直接提交POOL-缓存在订单池中二次提交" json:"submit_strategy"` // 订单提交策略DIRECT-直接提交POOL-缓存在订单池中二次提交
}
// TableName MerchantDeployInfo's table name
func (*MerchantDeployInfo) TableName() string {
return TableNameMerchantDeployInfo
}