SensitiveDataLog.php 541 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. use think\model\relation\BelongsTo;
  5. /**
  6. * SensitiveDataLog 模型
  7. */
  8. class SensitiveDataLog extends Model
  9. {
  10. protected $name = 'security_sensitive_data_log';
  11. protected $autoWriteTimestamp = true;
  12. protected $updateTime = false;
  13. public function sensitive(): BelongsTo
  14. {
  15. return $this->belongsTo(SensitiveData::class, 'sensitive_id');
  16. }
  17. public function admin(): BelongsTo
  18. {
  19. return $this->belongsTo(Admin::class, 'admin_id');
  20. }
  21. }