This commit is contained in:
Simon Pocrnjič
2025-09-28 00:30:18 +02:00
parent 7227c888d4
commit a913cfc381
44 changed files with 2123 additions and 587 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class BankAccount extends Model
{
use HasFactory;
use SoftDeletes;
protected $table = 'bank_accounts';
protected $fillable = [
'person_id',
'bank_name',
'iban',
'bic_swift',
'account_number',
'routing_number',
'currency',
'country_code',
'holder_name',
'is_active',
'notes',
'meta',
];
protected $casts = [
'is_active' => 'boolean',
'meta' => 'array',
];
public function person(): BelongsTo
{
return $this->belongsTo(\App\Models\Person\Person::class, 'person_id');
}
}