feat: 贷款模块后端 — 申请+审批+放款
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user