52 lines
1.0 KiB
PHP
Raw Normal View History

2022-12-05 23:01:12 +08:00
<?php
declare(strict_types=1);
namespace Modules\Permissions\Models;
use Catch\Base\CatchModel as Model;
/**
* @property $role_name
* @property $identify
* @property $parent_id
* @property $description
* @property $data_range
* @property $creator_id
* @property $created_at
* @property $updated_at
* @property $deleted_at
*/
class RolesModel extends Model
{
protected $table = 'roles';
2022-12-06 19:27:38 +08:00
protected $fillable = ['id', 'role_name', 'identify', 'parent_id', 'description', 'data_range', 'creator_id', 'created_at', 'updated_at', 'deleted_at'];
2022-12-05 23:01:12 +08:00
/**
* @var array
*/
2022-12-14 19:25:52 +08:00
protected array $fields = ['id', 'role_name','identify','parent_id','description','data_range', 'created_at', 'updated_at'];
2022-12-05 23:01:12 +08:00
/**
* @var array
*/
protected array $form = ['role_name','identify','parent_id','description','data_range'];
2022-12-14 19:25:52 +08:00
/**
* @var bool
*/
protected bool $isPaginate = false;
2022-12-05 23:01:12 +08:00
/**
* @var array
*/
public array $searchable = [
'role_name' => 'like',
];
2022-12-14 19:25:52 +08:00
protected bool $asTree = true;
2022-12-05 23:01:12 +08:00
}