<?php

namespace App\Element;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property int $set_id
 * @property string $title
 * @property int|null $parent_element_id
 *
 * @method static Builder<static>|ElementModel newModelQuery()
 * @method static Builder<static>|ElementModel newQuery()
 * @method static Builder<static>|ElementModel query()
 * @method static Builder<static>|ElementModel whereId($value)
 * @method static Builder<static>|ElementModel whereParentElementId($value)
 * @method static Builder<static>|ElementModel whereSetId($value)
 * @method static Builder<static>|ElementModel whereTitle($value)
 *
 * @mixin \Eloquent
 */
class ElementModel extends Model
{
    protected $table = 'elements';

    public $timestamps = false;

    protected $fillable = [
        'set_id',
        'title',
        'parent_element_id',
    ];

    protected $casts = [
        'set_id' => 'integer',
        'parent_element_id' => 'integer',
    ];
}
