'float', 'interest_value' => 'float', 'total_interest_gold' => 'float', 'total_payable_gold' => 'float', 'paid_gold' => 'float', 'paid_rial' => 'integer', 'has_check' => 'boolean', 'has_contract' => 'boolean', 'penalty_amount' => 'float', ]; public function customer(): BelongsTo { return $this->belongsTo(Customer::class); } public function installments(): HasMany { return $this->hasMany(GoldCreditInstallment::class)->orderBy('installment_number'); } public function creator(): BelongsTo { return $this->belongsTo(User::class, 'created_by'); } }