feat: 信用IEO系统 — 授信+申购+还款+逾期+后台
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace App;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CreditIeoOrder extends Model
|
||||
{
|
||||
protected $table = 'credit_ieo_order';
|
||||
protected $fillable = ['user_id','credit_line_id','project_id','amount','token_amount','status','repaid_amount','interest'];
|
||||
|
||||
public function user() { return $this->belongsTo(Users::class, 'user_id'); }
|
||||
public function creditLine() { return $this->belongsTo(CreditLine::class, 'credit_line_id'); }
|
||||
public function project() { return $this->belongsTo(IeoProject::class, 'project_id'); }
|
||||
}
|
||||
Reference in New Issue
Block a user