webman/console的 made:model 命令 可以根據(jù)數(shù)據(jù)庫中的表格并讀取表格所有參數(shù)生成model嗎
具體該怎么操作?
php webman make:model users 生成的model文件并沒有生成所有參數(shù),也沒有把屬性的備注加進去
users表有兩個字段id,name
生成文件如下
<?php
namespace app\model;
use support\Model;
/**
*
*/
class Users extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = null;
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
}