更新
This commit is contained in:
@@ -23,7 +23,7 @@ class Member extends Authenticatable implements JWTSubject {
|
||||
protected $fillable = ['username', 'nickname', 'email', 'mobile', 'password', 'status'];
|
||||
protected $hidden = ['password', 'deleted_at'];
|
||||
protected $dateFormat = 'Y-m-d H:i:s';
|
||||
protected $with = ['invite:uid,nickname,username,level_id', 'extend', 'level', 'store', 'social', 'pm'];
|
||||
protected $with = ['invite:uid,nickname,username,level_id', 'extend', 'level'];
|
||||
|
||||
/**
|
||||
* Get the identifier that will be stored in the subject claim of the JWT.
|
||||
@@ -75,23 +75,7 @@ class Member extends Authenticatable implements JWTSubject {
|
||||
return $this->hasOne(MemberExtends::class, 'member_id', 'uid');
|
||||
}
|
||||
|
||||
public function social(){
|
||||
return $this->hasMany(\Modules\Wechat\Models\MemberSocial::class, 'member_id', 'uid');
|
||||
}
|
||||
|
||||
public function level(){
|
||||
return $this->hasOne(MemberLevel::class, 'id', 'level_id');
|
||||
}
|
||||
|
||||
public function address(){
|
||||
return $this->hasMany(MemberAddress::class, 'member_id', 'id');
|
||||
}
|
||||
|
||||
public function pm(){
|
||||
return $this->hasOne(Pm::class, 'member_id', 'pm_uid');
|
||||
}
|
||||
|
||||
public function store(){
|
||||
return $this->hasOne(Store::class, 'member_id', 'store_uid');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberAccount extends BaseModel {
|
||||
|
||||
protected $table = 'member_account';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberAddress extends BaseModel {
|
||||
|
||||
protected $table = 'member_address';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberBank extends BaseModel {
|
||||
|
||||
protected $table = 'member_bank';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberCoupon extends BaseModel {
|
||||
|
||||
protected $table = 'member_coupon';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberScore extends BaseModel {
|
||||
|
||||
protected $table = 'member_score';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberStore extends BaseModel {
|
||||
|
||||
protected $table = 'member_store';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class MemberWallet extends BaseModel {
|
||||
|
||||
protected $table = 'member_wallet';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class Pm extends BaseModel {
|
||||
|
||||
protected $table = 'member_pm';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
|
||||
public function members(){
|
||||
return $this->belongsTo(Member::class, 'member_id', 'uid');
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace Modules\Member\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class Store extends BaseModel {
|
||||
|
||||
protected $table = 'member_store';
|
||||
protected $fillable = [];
|
||||
// protected $hidden = ['deleted_at'];
|
||||
|
||||
public function members(){
|
||||
return $this->belongsTo(Member::class, 'member_id', 'uid');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user