<?php
namespace Moto\Database\Models; use Moto; class MediaFolder extends Moto\Database\BaseModel { const CREATED_AT = 'created'; const UPDATED_AT = 'modified'; protected $table = 'media_folders'; protected $morphClass = '@MediaFolder'; protected $_legacyModel = Moto\Application\MediaLibrary\MediaFolderModel::class; protected $fillable = [ 'name', 'parent_id', 'is_favorite', 'order', ]; protected $casts = [ 'name' => 'string', 'parent_id' => 'int', 'is_favorite' => 'boolean', 'order' => 'int', ]; protected $attributes = [ 'name' => '', 'parent_id' => 0, 'is_favorite' => false, 'order' => 0, ]; } 