48 lines
1.4 KiB
PHP
48 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class UserPaymentOptionReference
|
|
*
|
|
* @property int $parent_user_payment_option_id
|
|
* @property int $child_user_payment_option_id
|
|
* @property UserPaymentOption $user_payment_option
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference whereChildUserPaymentOptionId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference whereParentUserPaymentOptionId($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class UserPaymentOptionReference extends Model
|
|
{
|
|
protected $table = 'user_payment_option_reference';
|
|
|
|
public $incrementing = false;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'parent_user_payment_option_id' => 'int',
|
|
'child_user_payment_option_id' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'parent_user_payment_option_id',
|
|
'child_user_payment_option_id',
|
|
];
|
|
|
|
public function user_payment_option()
|
|
{
|
|
return $this->belongsTo(UserPaymentOption::class, 'parent_user_payment_option_id');
|
|
}
|
|
}
|