64 lines
2 KiB
PHP
64 lines
2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class UserPaymentOptionCompany
|
|
*
|
|
* @property int $payment_option_id
|
|
* @property int $company_id
|
|
* @property string|null $ip_address
|
|
* @property int|null $is_active
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property Company $company
|
|
* @property UserPaymentOption $user_payment_option
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereCompanyId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereIpAddress($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereIsActive($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany wherePaymentOptionId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereUpdatedAt($value)
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class UserPaymentOptionCompany extends Model
|
|
{
|
|
protected $table = 'user_payment_option_company';
|
|
|
|
public $incrementing = false;
|
|
|
|
protected $casts = [
|
|
'payment_option_id' => 'int',
|
|
'company_id' => 'int',
|
|
'is_active' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'payment_option_id',
|
|
'company_id',
|
|
'ip_address',
|
|
'is_active',
|
|
];
|
|
|
|
public function company()
|
|
{
|
|
return $this->belongsTo(Company::class);
|
|
}
|
|
|
|
public function user_payment_option()
|
|
{
|
|
return $this->belongsTo(UserPaymentOption::class, 'payment_option_id');
|
|
}
|
|
}
|