feat: 贷款模块后端 — 申请+审批+放款

This commit is contained in:
testadmin
2026-04-28 20:53:00 +08:00
parent a323b7da8e
commit c426a5e7f6
4 changed files with 316 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Loan extends Model
{
protected $table = 'loan';
public $timestamps = false;
protected $fillable = ['user_id', 'amount', 'card_image', 'cardbm_image', 'hand_image', 'institution', 'status', 'remark', 'create_time', 'update_time'];
public function user()
{
return $this->belongsTo(Users::class, 'user_id', 'id');
}
}