You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
423 B
23 lines
423 B
<?php
|
|
|
|
namespace App\Model;
|
|
|
|
use App\Model\Model;
|
|
|
|
class CouponRec extends Model
|
|
{
|
|
/* 状态 */
|
|
// 未使用
|
|
const STATE_UNUSED = 0;
|
|
// 使用部分
|
|
const STATE_SOME = 1;
|
|
// 已用完
|
|
const STATE_FINISH = 2;
|
|
|
|
protected $table = 'ims_system_coupon_user_receive';
|
|
|
|
public function coupon()
|
|
{
|
|
return $this->hasOne('App\Models\CouponUser','id','system_coupon_user_id');
|
|
}
|
|
}
|