increments('id'); $table->integer('order_id')->unsigned()->index('order_id'); $table->string('trade_no', 20); $table->string('type', 16); $table->decimal('amount', 20)->unsigned(); $table->string('state', 16); $table->dateTime('paid_at')->nullable(); $table->timestamps(); $table->text('source', 65535)->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('payments'); } }