<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DevelopmentScope extends Model
{
    protected $guarded = [];

    protected function casts(): array
    {
        return [
            'impacted_modules' => 'array',
            'impacted_roles' => 'array',
            'impacted_tables' => 'array',
            'acceptance_criteria' => 'array',
            'test_cases' => 'array',
        ];
    }

    public function items()
    {
        return $this->hasMany(DevelopmentScopeItem::class);
    }
}
