bigIncrements('id'); $table->integer('uid') ->index('uid') ->unsigned() ->comment('uid'); $table->integer('post_id') ->index('post_id') ->comment('内容id'); $table->string('username', 32) ->default('') ->comment('操作人'); $table->string('log_type', 32) ->default('add_data') ->comment('类型:add_data增加数据'); $table->string('content', 500) ->default('') ->comment('内容'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('post_log'); } }