loan paid off ltter
This commit is contained in:
60
app/Modules/LoanPaidOffLetter/Models/LoanPaidOffLetter.php
Normal file
60
app/Modules/LoanPaidOffLetter/Models/LoanPaidOffLetter.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules\LoanPaidOffLetter\Models;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Modules\Branch\Models\Branch;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $unique_id
|
||||
* @property string $region
|
||||
* @property int $branch_id
|
||||
* @property string $customer_name
|
||||
* @property string $customer_surname
|
||||
* @property string $customer_patronic_name
|
||||
* @property \Illuminate\Support\Carbon $born_at
|
||||
* @property string $phone
|
||||
* @property string $passport_serie
|
||||
* @property string $passport_id
|
||||
* @property string $status
|
||||
* @property string $notes
|
||||
* @property int $user_id
|
||||
* @property string $loan_contract_number
|
||||
* @property string $loan_contract_date
|
||||
* @property string $loan_amount
|
||||
* @property string $loan_reason
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
*/
|
||||
class LoanPaidOffLetter extends Model
|
||||
{
|
||||
protected $table = 'loan_paid_off_letters';
|
||||
|
||||
protected $casts = [
|
||||
'born_at' => 'date',
|
||||
'loan_contract_date' => 'date',
|
||||
];
|
||||
|
||||
/**
|
||||
* User
|
||||
*
|
||||
* @return BelongsTo<User, $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Branch
|
||||
*
|
||||
* @return BelongsTo<Branch, $this>
|
||||
*/
|
||||
public function branch(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Branch::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user