首页修改,jk8修改,历史记录相关,api权限
This commit is contained in:
34
app/admin/model/MoneyLogHistory.php
Normal file
34
app/admin/model/MoneyLogHistory.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\model\relation\HasMany;
|
||||
use Throwable;
|
||||
use think\model;
|
||||
use think\Exception;
|
||||
use think\model\relation\BelongsTo;
|
||||
|
||||
/**
|
||||
* MoneyLogHistory 模型
|
||||
*/
|
||||
class MoneyLogHistory extends model
|
||||
{
|
||||
protected $autoWriteTimestamp = true;
|
||||
protected $updateTime = false;
|
||||
|
||||
public static function onBeforeDelete(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function moneyLog(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(UserMoneyLog::class, 'money_log_id');
|
||||
}
|
||||
|
||||
public function admin(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Admin::class, 'created_by');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user