<?php

namespace App\Models\Dictionaries;

use App\Support\RelationValuesTrait;
use App\Support\UuidScopeTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;

class Dictionary extends Model {
    use UuidScopeTrait, SoftDeletes, RelationValuesTrait;

    protected $dates = [
    ];

    protected $fillable = [
        'uuid',
        'name',
        'title'
    ];

    protected $hidden = [
        'id'
    ];



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



}
