add
This commit is contained in:
27
app/admin/model/DataRecycleLog.php
Normal file
27
app/admin/model/DataRecycleLog.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
use think\model\relation\BelongsTo;
|
||||
|
||||
/**
|
||||
* DataRecycleLog 模型
|
||||
*/
|
||||
class DataRecycleLog extends Model
|
||||
{
|
||||
protected $name = 'security_data_recycle_log';
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
protected $updateTime = false;
|
||||
|
||||
public function recycle(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(DataRecycle::class, 'recycle_id');
|
||||
}
|
||||
|
||||
public function admin(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Admin::class, 'admin_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user