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

namespace App\Models;use Illuminate\Notifications\Notifiable;use Illuminate\Foundation\Auth\User as Authenticatable;use Spatie\Permission\Traits\HasRoles;class Member extends Authenticatable{protected $table='members';protected $guarded=[];protected $hidden=['password','remember_token'];public function application(){return $this->belongsTo(Application::class,'application_id','id');}public function app(){return $this->belongsTo(App::class,'app_id','id');}public function channel(){return $this->belongsTo(Channel::class,'channel_code','channel_code');}public function product(){return $this->belongsTo(Product::class,'product_id','id');}public function page(){return $this->belongsTo(DistributePage::class,'page_id','id');}public function log(){return $this->hasMany(MemberLog::class,'mid','id');}public function applies(){return $this->hasMany(Apply::class,'mid','id');}public function device(){return $this->hasOne(Device::class,'identifier','identifier_push');}public function info(){return $this->hasOne(MemberInfo::class,'mid','id');}public function member_info(){return $this->hasOne(MemberInfo::class,'mid','id');}}
?>