Files
UNIT3D-Community-Edition/app/Models/Credit.php
2023-08-26 07:43:07 +00:00

70 lines
1.8 KiB
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author Roardom <roardom@protonmail.com>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Credit extends Model
{
use HasFactory;
/**
* Indicates if the IDs are auto-incrementing.
*
* @var bool
*/
public $incrementing = true;
/**
* Indicates If The Model Should Be Timestamped.
*
* @var bool
*/
public $timestamps = false;
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Occupation, self>
*/
public function occupation(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Occupation::class, 'occupation_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Person, self>
*/
public function person(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Person::class);
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Tv, self>
*/
public function tv(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Tv::class);
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Movie, self>
*/
public function movie(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Movie::class);
}
}