mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
45 lines
979 B
PHP
45 lines
979 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
/**
|
|
* Class Bank
|
|
* @package App\Models
|
|
*
|
|
* @property \App\Models\Country country_id
|
|
* @property \App\Models\Company company_id
|
|
* @property string bank_name
|
|
* @property string holder_name
|
|
* @property string account_no
|
|
* @property int type
|
|
* @property int default
|
|
* @property int status
|
|
*/
|
|
class Bank extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'banks';
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
**/
|
|
public function country(): HasOne
|
|
{
|
|
return $this->hasOne(Country::class, 'country_id', 'id');
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
**/
|
|
public function company(): BelongsTo
|
|
{
|
|
return $this->BelongsTo(Company::class, 'company_id', 'id');
|
|
}
|
|
}
|