increments('id'); $table->text('name')->nullable(); $table->integer('store_id')->nullable(); $table->integer('substore_id')->nullable(); $table->string('description', 255)->nullable(); $table->integer('category_id')->nullable(); $table->integer('subcategory_id')->nullable(); $table->decimal('quantity', 10,2)->nullable(); $table->enum('status', ['Show','Hide'])->nullable(); $table->enum('verification_status', ['Pending','Completed','Canceled','Out of order','Damage'])->nullable(); $table->string('slug', 200)->nullable(); $table->enum('status', ['draft', 'published', 'hidden', 'suspended', 'spam'])->default('draft')->nullable(); $table->integer('user_id')->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('stocks'); } }