32 行
2.1 KiB
PHP
可执行文件
32 行
2.1 KiB
PHP
可执行文件
<?php
|
|
namespace Common\Model;
|
|
//[1.4.13]
|
|
|
|
/**
|
|
* 该模型在1.4.13版本将废弃
|
|
* Class RetailRewardModel
|
|
* @package Common\Model
|
|
*/
|
|
class RetailRewardModel extends BaseModel
|
|
{
|
|
protected $tableName = 'reward';
|
|
const ID ='id'; //int(11) NOT NULL AUTO_INCREMENT COMMENT '红包id',
|
|
const MERCHANT_ID ='merchant_id'; //int(11) DEFAULT NULL COMMENT '商户id',
|
|
const MONEY ='money'; //decimal(20,2) DEFAULT NULL COMMENT '红包金额',
|
|
const LESS_MONEY ='less_money'; //decimal(20,2) DEFAULT NULL COMMENT '剩余金额',
|
|
const NUMBER ='number'; //int(10) DEFAULT NULL COMMENT '红包数量',
|
|
const LESS_NUMBER ='less_number'; //int(10) DEFAULT NULL COMMENT '剩余红包个数',
|
|
const NEED_MONEY ='need_money'; //decimal(20,2) DEFAULT NULL COMMENT '消费金额',
|
|
const MIN_MONEY ='min_money'; //decimal(20,2) DEFAULT NULL COMMENT '红包最小值',
|
|
const MAX_MONEY ='max_money'; //decimal(20,2) DEFAULT NULL COMMENT '红包最大值',
|
|
const ADD_TIME ='add_time'; //varchar(20) DEFAULT NULL COMMENT '商户添加红包的时间',
|
|
const STATUS ='status'; //int(2) DEFAULT '1' COMMENT '1 开启红包 0关闭红包',
|
|
const START_TIME ='start_time'; //varchar(20) DEFAULT NULL COMMENT '红包开启时间',
|
|
const END_TIME ='end_time'; //varchar(20) DEFAULT NULL COMMENT '红包结束时间',
|
|
const PHASE ='phase'; //int(11) DEFAULT '1' COMMENT '红包期数:每修改一次红包,即开始新的红包期数。',
|
|
const TYPE ='type'; //int(1) DEFAULT NULL COMMENT '红包类型 1 公众号红包 2 刷卡支付红包 3 小程序首页红包',
|
|
const IS_EVERYDAY ='day_restrict_type'; //tinyint(1) DEFAULT '0' COMMENT '每日领取限制 0不限制 1限制次数 2限制金额',
|
|
const DAY_MAX_TIME ='day_max_time'; //int(11) DEFAULT '0' COMMENT '每天最多能领取多少次 不填默认为不限制只在is_everyday为1时有效',
|
|
const SUM_MAX_TIME ='sum_max_time'; //int(11) DEFAULT '0' COMMENT '每个用户能领取的最大总次数 不填默认为不限制只在is_everyday为1时有效',
|
|
const REWARD_LIST = 'reward_list'; //text,
|
|
} |