mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-10-14 12:13:25 -04:00
22 lines
476 B
PHP
22 lines
476 B
PHP
<?php
|
|
|
|
namespace Modules\Marketing\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Seller\Entities\SellerProduct;
|
|
|
|
class CouponProduct extends Model
|
|
{
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public function coupon(){
|
|
return $this->belongsTo(Coupon::class,'coupon_id','id');
|
|
}
|
|
|
|
public function product(){
|
|
return $this->belongsTo(SellerProduct::class, 'product_id', 'id');
|
|
}
|
|
}
|