<?php
namespace Moto\Database\Models; use Moto; use Illuminate; class Role extends Moto\Database\BaseModel { const GUEST_ID = 1; const USER_ID = 2; const ROOT_ID = 3; const AUTHOR_ID = 4; const EDITOR_ID = 5; const ADMIN_ID = 6; const CREATED_AT = 'created'; const UPDATED_AT = 'modified'; protected $table = 'roles'; protected $morphClass = '@Role'; protected $_legacyModel = Moto\Application\Roles\RoleModel::class; protected $fillable = [ 'parent_id', 'name', 'enabled', 'priority', 'protected', 'hidden', ]; protected $casts = [ 'parent_id' => 'int', 'name' => 'string', 'enabled' => 'boolean', 'priority' => 'int', 'protected' => 'int', 'hidden' => 'int', ]; protected $attributes = [ 'parent_id' => 0, 'name' => '', 'enabled' => true, 'priority' => 125, 'protected' => 0, 'hidden' => 0, ]; protected $visible = [ ]; protected $hidden = [ 'del', ]; protected $dates = [ ]; } 