increments('id'); $table->integer('category_id')->nullable(); $table->string('name', 255)->nullable(); $table->text('description')->nullable(); $table->integer('brand_id')->nullable(); $table->integer('model_id')->nullable(); $table->decimal('price', 50,0)->nullable(); $table->longText('images')->nullable(); $table->text('address')->nullable(); $table->string('neighborhood', 255)->nullable(); $table->string('city', 255)->nullable(); $table->string('state', 255)->nullable(); $table->string('country', 255)->nullable(); $table->integer('zip_code')->nullable(); $table->string('slug', 200)->nullable(); $table->enum('status', ['draft','complete','verify','approve','publish','unpublish','archive'])->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 50)->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('accessories'); } }