<?php
declare (strict_types = 1);

namespace app\common\model;

/**
 * 系统接口表模型
 * @mixin \think\Model
 */
class SysRestfulApiBaseModel extends BaseModel
{
    // 表名
    protected $name = 'sys_restful_api';

    // 主键
    protected $pk = 'id';

    // 字段信息
    protected $schema = [
        'id'         => 'int',
        'name'       => 'string',
        'module'     => 'string',
        'layer'      => 'string',
        'controller' => 'string',
        'action'     => 'string',
        'rule'       => 'string',
        'method'     => 'string',
        'desc'       => 'string',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
    ];
}
