You've already forked guangan
1
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\points_mall\model;
|
||||
|
||||
use plugin\account\model\PluginAccountBind;
|
||||
use think\admin\Model;
|
||||
|
||||
class PointsMallUserPoint extends Model
|
||||
{
|
||||
protected $pk = 'uid';
|
||||
|
||||
public function log()
|
||||
{
|
||||
return $this->hasMany(PointsMallUserPointLog::class, 'uid');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(PluginAccountBind::class, 'uid');
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\points_mall\model;
|
||||
|
||||
use think\admin\Model;
|
||||
|
||||
class PointsMallUserPointLog extends Model
|
||||
{
|
||||
protected $pk = 'uid';
|
||||
}
|
Reference in New Issue
Block a user