<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Project extends Model
{
    protected $fillable = [
        'name', 'description', 'start_date', 'end_date', 'status', 'budget', 'spent', 'note',
    ];

    public function tasks(): HasMany
    {
        return $this->hasMany(Task::class);
    }
}
