RecycleBinModel.php 953 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-present http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 老猫 <thinkcmf@126.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\model;
  12. use think\Model;
  13. class RecycleBinModel extends Model
  14. {
  15. /**
  16. * 模型名称
  17. * @var string
  18. */
  19. protected $name = 'recycle_bin';
  20. protected $autoWriteTimestamp = true;
  21. protected $update = false;
  22. public function user()
  23. {
  24. return $this->belongsTo('UserModel', 'user_id');
  25. }
  26. }