45 行
1.9 KiB
PHP
可执行文件
45 行
1.9 KiB
PHP
可执行文件
<?php
|
|
|
|
namespace PayCoupon\Model;
|
|
|
|
use Common\Model\BaseModel;
|
|
|
|
class PayCouponModel extends BaseModel
|
|
{
|
|
protected $tableName = 'pay_coupon';
|
|
protected $fields = [
|
|
'id',
|
|
'merchant_id',
|
|
'stock_name', //名称
|
|
'comment', //备注
|
|
'belong_merchant', //批次归属商户号
|
|
'available_begin_time', //批次开始时间
|
|
'available_end_time', //批次结束时间
|
|
'stock_use_rule', //批次使用规则
|
|
'pattern_info', //代金券详情页样式设置
|
|
'coupon_type', //1全场券 2单品券
|
|
'coupon_use_rule', //核销规则
|
|
'no_cash', //是否无资金流 1是 2否
|
|
'stock_type', //批次类型 1为NORMAL固定面额满减券,2为DISCOUNT折扣券使用规则,3为EXCHANGE换购券使用规则
|
|
'out_request_no', //商户创建批次凭据号
|
|
'ext_info', //扩展属性字段
|
|
'status', //1正常 2删除
|
|
'stock_id', //批次号
|
|
'create_time', //创建时间
|
|
'activate_status', //1已激活 2未激活
|
|
'activate_time', //激活时间
|
|
'mch_id', //创建的商户号
|
|
'valid_time_type', //生效时间类型 1固定时间段 2领取后第二天生效 3领取后多少天生效
|
|
'type', //1小程序 2公众号
|
|
'suspend_status', //1允许发放 2暂停
|
|
'user_type',//1普通商户类型 2服务商类型
|
|
'operator_id', //操作人id
|
|
'operator_id', //操作人id
|
|
'goods_id_gather', //选择的商品id集合
|
|
'goods_tag', //唯一标识
|
|
'operation_num', //剩余库存
|
|
'store_id_gather', //门店id,拼接
|
|
'appoint_type', //1指定商品id 2指定商品条码
|
|
'goods_code_str', //商品条码,拼接
|
|
];
|
|
} |