<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Models;use Illuminate\Database\Eloquent\Model;use Symfony\Component\Process\Process;class Apply extends Model{protected $guarded=[];public function product(){return $this->belongsTo(Product::class,'product_id','id');}public function credit(){return $this->belongsTo(Credit::class,'credit_id','id');}public function channel(){return $this->belongsTo(Channel::class,'channel_code','channel_code');}public function registerPage(){return $this->belongsTo(DistributePage::class,'register_page_id','id');}public function member(){return $this->belongsTo(Member::class,'mid','id');}public function productIntention(){return $this->hasOne(Product::class,'id','product_id');}public function creditIntention(){return $this->hasOne(Credit::class,'id','credit_id');}public function files(){return $this->hasOne(MemberFile::class,'id','file_id');}public function applyLogs(){return $this->hasMany(ApplyLog::class,'apply_id','id');}public function orderActive(){return $this->hasOne(OrderActive::class,'id','active_id');}public function type(){return $this->hasOne(OrderActive::class,'id','active_id');}public function cloudInfo(){return $this->hasOne(CloudApplyInfo::class,'apply_id','id');}}
?>