increments('id'); $table->integer('category_id')->nullable(); $table->integer('country_id')->nullable(); $table->integer('state_id')->nullable(); $table->integer('city_id')->nullable(); $table->integer('user_id')->nullable(); $table->enum('type', ['deal','education'])->nullable(); $table->integer('type_id')->nullable(); $table->string('title', 255)->nullable(); $table->text('images')->nullable(); $table->text('description')->nullable(); $table->text('features')->nullable(); $table->float('price')->nullable(); $table->date('expire_date')->nullable(); $table->integer('media_id')->nullable(); $table->string('target_group', 255)->nullable(); $table->string('age_group', 255)->nullable(); $table->integer('topics')->nullable(); $table->integer('brands')->nullable(); $table->text('tags')->nullable(); $table->enum('is_deal', ['on','off'])->nullable(); $table->integer('discount')->nullable(); $table->float('discount_price')->nullable(); $table->text('conditions')->nullable(); $table->date('valid_from')->nullable(); $table->date('valid_to')->nullable(); $table->date('publish_from')->nullable(); $table->date('publish_to')->nullable(); $table->enum('status', ['show','hide'])->nullable(); $table->string('slug', 255)->nullable(); $table->string('user_type', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('deals'); } }