increments('id'); $table->string('name', 200)->nullable(); $table->unsignedInteger('user_id')->nullable(); $table->unsignedInteger('project_id')->nullable(); $table->unsignedInteger('project_role_id')->nullable(); $table->string('remark', 200)->nullable(); $table->tinyInteger('active')->nullable()->default(2)->comment('1激活,2未激活'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_auths'); } }