34 lines
700 B
PHP
34 lines
700 B
PHP
<?php
|
|
|
|
namespace App\Models\Barobill;
|
|
|
|
use App\Models\Tenants\Tenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* 바로빌 계좌 거래 동기화 상태 모델
|
|
*
|
|
* 월별 API 동기화 완료 여부를 추적하여 캐시 판단에 사용
|
|
*/
|
|
class BankSyncStatus extends Model
|
|
{
|
|
protected $table = 'barobill_bank_sync_status';
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'bank_account_num',
|
|
'synced_year_month',
|
|
'synced_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'synced_at' => 'datetime',
|
|
];
|
|
|
|
public function tenant(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Tenant::class);
|
|
}
|
|
}
|