2021-11-18 17:57:04 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace app\model;
|
|
|
|
|
|
|
|
use think\Collection;
|
|
|
|
use think\db\exception\DataNotFoundException;
|
|
|
|
use think\db\exception\DbException;
|
|
|
|
use think\db\exception\ModelNotFoundException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 优惠券
|
|
|
|
* Class Coupon
|
|
|
|
* @package app\model
|
|
|
|
*/
|
|
|
|
class Coupon extends Base
|
|
|
|
{
|
|
|
|
//是否验证
|
|
|
|
const is_verificated_on = 1;//1已验证
|
|
|
|
const is_verificated_off = 0;//0未验证
|
2021-11-23 17:13:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
public function couponBill()
|
|
|
|
{
|
|
|
|
return $this->hasOne(CouponBill::class,"coupon_id","id");
|
|
|
|
}
|
2021-11-18 17:57:04 +08:00
|
|
|
}
|