34 行
3.0 KiB
PHP
可执行文件
34 行
3.0 KiB
PHP
可执行文件
<?php
|
||
namespace Common\Model;
|
||
use Think\Model;
|
||
//[1.4.8]
|
||
class RetailMCouponModel extends BaseModel
|
||
{
|
||
protected $tableName = 'retail_mcoupon';
|
||
const ID = 'id'; //int(11) NOT NULL AUTO_INCREMENT,
|
||
const COUPON_NAME = 'coupon_name'; //varchar(255) DEFAULT NULL COMMENT '优惠券名称',
|
||
const COUPON_ALL_NUM = 'coupon_allnum'; //int(11) NOT NULL DEFAULT '0' COMMENT '优惠券数量库存',
|
||
const COUPON_NUM = 'coupon_num'; //int(10) NOT NULL DEFAULT '0' COMMENT '优惠券剩余数量',
|
||
const COUPON_GRADE_ID = 'coupon_gradeid'; //text COMMENT '优惠券发放用户vip等级:-1、plus会员 0、所有用户;其他:以等级id连接。 ',
|
||
const ADD_TIME = 'addtime'; //int(11) DEFAULT NULL COMMENT '优惠券创建时间',
|
||
const DEAD_TIME = 'deadtime'; //int(11) NOT NULL COMMENT '过期时间',
|
||
const DETAIL = 'detailmsg'; //text COMMENT '优惠券使用说明。',
|
||
const STORE_IDS = 'storeids'; //text NOT NULL COMMENT '商铺id,可用店铺id:0,全部店铺可用,其他:可用店铺id连接:以'',''连接。',
|
||
const NEED_MONEY = 'needmoney'; //decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '满消费',
|
||
const REDUCE_MONEY = 'reducemoney'; //decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '减少金额',
|
||
const STATUS = 'status'; //int(2) NOT NULL DEFAULT '1' COMMENT '状态:1,正常;2,下架。3,删除。',
|
||
const USE_NUM = 'usenum'; //int(10) NOT NULL DEFAULT '0' COMMENT '优惠券使用次数',
|
||
const COUPON_TYPE = 'coupontype'; //tinyint(1) NOT NULL DEFAULT '1' COMMENT '有效期类型:1,开始---结束。2,领取日后N天,3,领取日次日后N天。',
|
||
const DAY_NUM = 'daynum'; //int(10) NOT NULL DEFAULT '1' COMMENT 'coupontype:为2/3时有效。领取后的有效天数。',
|
||
const START_TIME = 'starttime'; //varchar(13) DEFAULT '' COMMENT '优惠券生效时间',
|
||
const END_TIME = 'endtime'; //varchar(13) DEFAULT '' COMMENT '优惠券到期时间',
|
||
const MAX_NUM = 'maxnum'; //int(10) NOT NULL DEFAULT '0' COMMENT '每个会员最大领取次数。0,无限制,其他,次数',
|
||
const MERCHANT_ID = 'merchantid'; //int(11) NOT NULL DEFAULT '0' COMMENT '商户id,创建时间。',
|
||
const GIVE_STATUS = 'give_status'; //tinyint(1) DEFAULT '1' COMMENT '发放类型 1. 自主发放 2. 充值赠送 3支付发放',
|
||
const RECHARGE_STATE = 'recharge_state'; //tinyint(1) DEFAULT '0' COMMENT '充值赠送(无关优惠券类型) 0.关闭 1.开启',
|
||
const MONEY = 'money'; //decimal(10,2) DEFAULT '0.00' COMMENT '充值赠送的金额',
|
||
const PAYMENT_STATE = 'payment_state'; //tinyint(1) DEFAULT '0' COMMENT '支付赠送(支付发放) 0.关闭 1.开启',
|
||
const PAYMENT_MONEY='payment_money'; //decimal(10,2) DEFAULT '0.00' COMMENT '支付赠送的金额',
|
||
const TYPE = 'type'; //tinyint(1) DEFAULT '1' COMMENT '类型1.普通优惠券 2.券包优惠券',
|
||
const M_COUPON_GROUP_ID = 'mcoupon_group_id'; //int(10) DEFAULT NULL COMMENT '券包id',
|
||
} |