2024-04-27 15:05:16 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-05-29 16:20:22 +03:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2024-04-27 15:05:16 +03:00
|
|
|
|
2024-05-07 10:35:04 +03:00
|
|
|
class TaskStatus extends Model
|
2024-04-27 15:05:16 +03:00
|
|
|
{
|
|
|
|
use HasFactory;
|
2024-05-23 14:53:02 +03:00
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'project_id',
|
|
|
|
'created_by_id',
|
|
|
|
];
|
2024-05-29 16:20:22 +03:00
|
|
|
|
|
|
|
public function project(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Project::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function task(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Task::class);
|
|
|
|
}
|
2024-04-27 15:05:16 +03:00
|
|
|
}
|