mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
83a9cee82d
- Seeder CLF Company - DB Migration 4
41 lines
901 B
PHP
41 lines
901 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
/**
|
|
* Class CompanyBank
|
|
* @package App\Models
|
|
* @version August 4, 2020, 4:36 am
|
|
*
|
|
* @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 CompanyBank extends AbstractModel
|
|
{
|
|
protected $table = 'company_banks';
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
**/
|
|
public function country(): HasOne
|
|
{
|
|
return $this->hasOne(Country::class, 'country_id', 'id');
|
|
}
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
|
**/
|
|
public function company(): HasOne
|
|
{
|
|
return $this->hasOne(Company::class, 'company_id', 'id');
|
|
}
|
|
}
|