increments('id'); $table->integer('user_id')->unsigned()->index(); $table->unsignedInteger('goods_id')->index(); $table->unsignedInteger('coins')->default(0); $table->string('real_name',64); $table->string('phone',24); $table->string('email',128); $table->string('comment',512)->nullable(); $table->unsignedTinyInteger('status')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('exchanges'); } }