- config/database.php에 codebridge connection 추가 - 78개 MNG 전용 모델에 $connection = 'codebridge' 설정 - Admin (15): PM, 로드맵, API Explorer - Sales (16): 영업파트너, 수수료, 가망고객 - Finance (9): 법인카드, 자금관리, 홈택스 - Barobill (12): 은행/카드 동기화 관리 - Interview (1), ESign (6), Equipment (2) - AI (3), Audit (3), 기타 (11)
46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Models\Barobill;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* 카드 거래 금액 수정 이력 모델
|
|
*/
|
|
class CardTransactionAmountLog extends Model
|
|
{
|
|
protected $connection = 'codebridge';
|
|
protected $table = 'barobill_card_transaction_amount_logs';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'card_transaction_id',
|
|
'original_unique_key',
|
|
'before_supply_amount',
|
|
'before_tax',
|
|
'after_supply_amount',
|
|
'after_tax',
|
|
'modified_by',
|
|
'modified_by_name',
|
|
'ip_address',
|
|
];
|
|
|
|
protected $casts = [
|
|
'before_supply_amount' => 'decimal:2',
|
|
'before_tax' => 'decimal:2',
|
|
'after_supply_amount' => 'decimal:2',
|
|
'after_tax' => 'decimal:2',
|
|
'created_at' => 'datetime',
|
|
];
|
|
|
|
/**
|
|
* 카드 거래 관계
|
|
*/
|
|
public function cardTransaction(): BelongsTo
|
|
{
|
|
return $this->belongsTo(CardTransaction::class, 'card_transaction_id');
|
|
}
|
|
}
|