presseportale/dev/Models/UserPaymentOptionCompany.php
Kevin Adametz 405df0a122
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
first commit
2025-10-20 17:53:02 +02:00

62 lines
1.9 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
* @package App\Models
* @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');
}
}