<?php
namespace app\common\model\master_worker_message;
use app\common\model\BaseModel;
use app\common\model\master_worker\MasterWorker;

/**
 * @author 林海涛
 * @date 2024/7/11 下午5:28
 */
class MasterWorkerMessage extends BaseModel
{
    protected $name = 'master_worker_message';

    public function masterWorker()
    {
        return $this->hasOne(MasterWorker::class,'id','worker_id')->field('id,nickname');
    }
}