This commit is contained in:
2024-11-21 16:40:44 +08:00
commit a5029a2be7
69 changed files with 3160 additions and 0 deletions

View File

@ -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');
}
}

View File

@ -0,0 +1,10 @@
<?php
namespace plugin\points_mall\model;
use think\admin\Model;
class PointsMallUserPointLog extends Model
{
protected $pk = 'uid';
}