ExamineApplyModel.php 794 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\common\model;
  3. use think\Db;
  4. use think\Model;
  5. /**
  6. * 群组
  7. */
  8. class ExamineApplyModel extends BaseModel
  9. {
  10. // 表名
  11. protected $name = 'examine_apply';
  12. // 自动写入时间戳字段
  13. protected $autoWriteTimestamp = false;
  14. // 定义时间戳字段名
  15. protected $createTime = false;
  16. protected $updateTime = false;
  17. protected int $is_status_search = 0;// 默认使用 status = 1 筛选
  18. protected int $is_delete_search = 0;// 默认使用 is_delete = 0 筛选
  19. /**
  20. * 默认查询字段
  21. *
  22. * @var array|string[]
  23. */
  24. public array $select = [
  25. '*'
  26. ];
  27. protected $deleteTime = false;
  28. public function examine()
  29. {
  30. return $this->hasOne(ExamineModel::class, 'id', 'examine_id');
  31. }
  32. }