increments('id'); $table->string('order_code', 255)->nullable(); $table->integer('seller_id')->nullable(); $table->string('f_name', 255)->nullable(); $table->string('l_name', 255)->nullable(); $table->string('company_name', 255)->nullable(); $table->integer('country_id')->nullable(); $table->integer('state_id')->nullable(); $table->text('sreet_address')->nullable(); $table->string('apartment', 255)->nullable(); $table->string('zip_code', 255)->nullable(); $table->integer('subtotal')->nullable(); $table->increments('total')->nullable(); $table->enum('payment_mode', ['Direct payment','Check payment','Cash on delivery'])->nullable(); $table->enum('payment_status', ['Payed','Not Payed'])->nullable(); $table->enum('status', ['Pending','Processing','Dispatched','Shipped','On The Way','Out for Delivery','Delivered'])->nullable(); $table->string('user_type', 100)->nullable(); $table->integer('user_id')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('orders'); } }