DataRecycleLog.php 529 B

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