increments('id'); $table->string('name', 255)->nullable(); $table->integer('parent_id')->nullable(); $table->integer('category_id')->nullable(); $table->integer('product_id')->nullable(); $table->integer('discount')->nullable(); $table->float('discount_price')->nullable(); $table->dateTime('valid_from')->nullable(); $table->dateTime('valid_to')->nullable(); $table->enum('status', ['Active','Inactive'])->nullable(); $table->text('slug')->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('discounts'); } }