SensitiveDataLog.php 579 B

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