<?php

namespace App\Models\Dictionaries;

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

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

    protected $dates = [
    ];

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

    protected $hidden = [
        'id'
    ];



    public function dictionary(): BelongsTo {
        return $this->belongsTo(Dictionary::class);
    }




}
