Attainly/backend/app/Element/ElementModel.php

45 lines
975 B
PHP

<?php
namespace App\Element;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property int $set_level_id
* @property string $name
* @property int|null $parent_element_id
* @property int $position
*
* @method static Builder<static>|ElementModel newModelQuery()
* @method static Builder<static>|ElementModel newQuery()
* @method static Builder<static>|ElementModel query()
*
* @mixin \Eloquent
*/
#[Fillable([
'set_level_id',
'name',
'parent_element_id',
'position',
])]
class ElementModel extends Model
{
protected $table = 'elements';
public $timestamps = false;
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'set_level_id' => 'integer',
'parent_element_id' => 'integer',
'position' => 'integer',
];
}
}