increments('id'); $table->integer('vendor_id')->nullable(); $table->integer('customer_id')->nullable(); $table->integer('payment_term_id')->nullable(); $table->string('order_no', 250)->nullable(); $table->string('reference', 100)->nullable(); $table->date('order_date')->nullable(); $table->date('expected_delivery_date')->nullable(); $table->enum('status', ['Draft','Approved'])->nullable(); $table->float('subtotal')->nullable(); $table->float('discount')->nullable(); $table->float('total')->nullable(); $table->text('notes')->nullable(); $table->text('terms_and_conditions')->nullable(); $table->text('files')->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 200)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('orders'); } }