<?php

namespace app\model\star;

use app\extra\basic\Model;
use think\model\relation\HasOne;


/**
 * @property integer $id (主键)
 * @property mixed $job_id
 */
class StarTaskVideo 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 = "star_task_video";
    
    /**
     * 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 star(): HasOne
    {
        return $this->hasOne(StarTaskUser::class,"author_id","author_id");
    }

}
