<?php

namespace app\model\blue;

use app\extra\basic\Model;


/**
 * @property integer $id (主键)
 * @property mixed $openid 
 * @property integer $task_id 
 * @property mixed $task_sn 
 * @property mixed $platform 
 * @property string $image 
 * @property string $url 
 * @property integer $status 
 * @property mixed $create_at 创建时间
 */
class BlueTaskUser extends Model
{
    /**
     * The connection name for the model.
     *
     * @var string|null
     */
    protected $connection = 'mysql';
    
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected string $table = "blue_task_user";
    
    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected string $primaryKey = "id";
    
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public bool $timestamps = false;

    public function task()
    {
        return $this->hasOne(BlueTask::class, 'id', 'task_id');
    }

}
