ReviewScore.php 737 字节
<?php


namespace app\school\model\review;

use think\Model;
use traits\model\SoftDelete;

class ReviewScore extends Model
{
    const STATISTICAL_ONE = 1; //平均统计
    const STATISTICAL_TWO = 2; //总和统计
    const STATISTICAL_THIRD = 3; //去最高最低平均统计
    use SoftDelete;

    // 数据表名称
    protected $name = 'match_review_score';

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    public function judge()
    {
        return $this->hasOne('ReviewExpert','id','judge_id');//hasMany是一对多
    }
}