<?php

namespace app\common\model;

use think\Db;
use think\Model;

/**
 * 群组
 */
class ExamineApplyModel extends BaseModel
{
    // 表名
    protected $name = 'examine_apply';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;

    protected int $is_status_search = 0;// 默认使用 status = 1 筛选
    protected int $is_delete_search = 0;// 默认使用 is_delete = 0 筛选

    /**
     * 默认查询字段
     *
     * @var array|string[]
     */
    public array $select = [
        '*'
    ];

    protected $deleteTime = false;

    public function examine()
    {
        return $this->hasOne(ExamineModel::class, 'id', 'examine_id');
    }
}