You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
558 B
31 lines
558 B
|
3 days ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||
|
|
use Laravel\Sanctum\HasApiTokens;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 微信公众号 H5 用户(与后台 User 分离)
|
||
|
|
*/
|
||
|
|
class WechatUser extends Model
|
||
|
|
{
|
||
|
|
use HasApiTokens;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'openid',
|
||
|
|
'unionid',
|
||
|
|
'nickname',
|
||
|
|
'avatar_url',
|
||
|
|
'real_name',
|
||
|
|
'phone',
|
||
|
|
'id_card',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function reservations(): HasMany
|
||
|
|
{
|
||
|
|
return $this->hasMany(Reservation::class);
|
||
|
|
}
|
||
|
|
}
|