mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 07:04:24 +00:00
27 lines
541 B
PHP
27 lines
541 B
PHP
<?php
|
|
|
|
namespace app\admin\model;
|
|
|
|
use think\Model;
|
|
use think\model\relation\BelongsTo;
|
|
|
|
/**
|
|
* SensitiveDataLog 模型
|
|
*/
|
|
class SensitiveDataLog extends Model
|
|
{
|
|
protected $name = 'security_sensitive_data_log';
|
|
|
|
protected $autoWriteTimestamp = true;
|
|
protected $updateTime = false;
|
|
|
|
public function sensitive(): BelongsTo
|
|
{
|
|
return $this->belongsTo(SensitiveData::class, 'sensitive_id');
|
|
}
|
|
|
|
public function admin(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Admin::class, 'admin_id');
|
|
}
|
|
} |