Rabbi_Gerzi/backend/app/Element/ElementModel.php

49 lines
1.4 KiB
PHP

<?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 string $description
* @property string $rich_text
* @property string|null $pdf_path
* @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)
* @method static Builder<static>|ElementModel whereDescription($value)
* @method static Builder<static>|ElementModel whereRichText($value)
* @method static Builder<static>|ElementModel wherePdfPath($value)
*
* @mixin \Eloquent
*/
class ElementModel extends Model
{
protected $table = 'elements';
public $timestamps = false;
protected $fillable = [
'set_id',
'title',
'description',
'rich_text',
'pdf_path',
'parent_element_id',
];
protected $casts = [
'set_id' => 'integer',
'parent_element_id' => 'integer',
];
}