increments('id')->comment('主键ID'); $table->string('name',12)->unique()->comment('用户名称'); $table->string('password',80)->comment('密码'); $table->text('last_token')->nullable()->comment('登陆时的token'); $table->tinyInteger('status')->default(0)->comment('用户状态 -1代表已删除 0代表正常 1代表冻结'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }