<?php

namespace App\Models\Companies;

use App\Support\RelationValuesTrait;
use App\Support\UuidScopeTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class BankDetails extends Model {
    use HasFactory, UuidScopeTrait, SoftDeletes, RelationValuesTrait;

    protected $table = 'company_bank_details';

    protected $dates = [
        'deleted_at'
    ];

    protected $fillable = [
        'uuid',
        'company_id',
        'bik',
        'bank',
        'address',
        'checking_account',
        'correspondent_account'
    ];

    protected $hidden = [

    ];

    public function company(): BelongsTo {
        return $this->belongsTo(Company::class);
    }
}
