Skip to content

Commit

Permalink
update model stub
Browse files Browse the repository at this point in the history
  • Loading branch information
dcto authored Dec 21, 2023
1 parent fdf0e27 commit ead28e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/stubs/model.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class %CLASS% extends Model
* @param \Blueprint $table
* @return void
*/
public function schema($table)
public function schema(\Blueprint $table)
{
$table->increments('id')->comment('ID');
$table->id('id')->comment('ID');
$table->unsignedInteger('pid')->default(0)->comment('PID');
$table->string('title', 96)->nullable()->comment('标题');
$table->boolean('state')->default(0)->comment('状态:0=禁用,1=启用');
Expand Down

0 comments on commit ead28e9

Please sign in to comment.