CouponSubsidize.php 512 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 关联优惠券ID用于补贴
  7. */
  8. namespace app\allwin\model;
  9. use think\Model;
  10. use util\Util;
  11. class CouponSubsidize extends Model
  12. {
  13. protected $pk = 'id';
  14. protected $table = 'ai_allwin_coupon_subsidize';
  15. public function coupon()
  16. {
  17. return $this->hasOne('Coupon','id','coupon_id');
  18. }
  19. }