increments('id'); $table->string('order_number')->nullable(); $table->string('carrier_number')->nullable(); $table->integer('deal_id')->nullable(); $table->string('customer_no')->nullable(); $table->integer('contact_id')->nullable(); $table->integer('account_id')->nullable(); $table->string('purchase_order')->nullable(); $table->date('due_date')->nullable(); $table->date('order_date')->nullable(); $table->nullableMorphs('owned_by'); $table->integer('order_status_id')->nullable(); $table->integer('order_carrier_id')->nullable(); $table->string('bill_street')->nullable(); $table->string('bill_state')->nullable(); $table->string('bill_country')->nullable(); $table->string('bill_zip_code')->nullable(); $table->string('ship_street')->nullable(); $table->string('ship_state')->nullable(); $table->string('ship_country')->nullable(); $table->string('ship_zip_code')->nullable(); $table->text('terms_and_cond')->nullable(); $table->text('notes')->nullable(); $table->float('discount')->nullable(); $table->integer('currency_id')->nullable(); $table->integer('tax_id')->nullable(); $table->float('paid')->nullable(); $table->float('delivery_cost')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('orders'); } }