RuleLog.php 555 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  5. /**
  6. * 触发审计规则日志
  7. */
  8. class RuleLog extends Model
  9. {
  10. public const UPDATED_AT = null;
  11. protected $table = 'rule_log';
  12. public function user(): BelongsTo
  13. {
  14. return $this->belongsTo(User::class);
  15. }
  16. public function node(): BelongsTo
  17. {
  18. return $this->belongsTo(Node::class);
  19. }
  20. public function rule(): BelongsTo
  21. {
  22. return $this->belongsTo(Rule::class);
  23. }
  24. }