id(); $table->string('name'); $table->string('cover')->nullable()->comment('封面图'); $table->string('director')->nullable()->comment('负责人'); $table->decimal('area')->default(0.00)->comment('面积'); $table->text('description')->nullable()->comment('描述'); $table->unsignedBigInteger('category_id')->nullable()->comment('分类'); $table->unsignedTinyInteger('is_recommend')->default(0)->comment('推荐开关'); $table->unsignedTinyInteger('is_enable')->default(1)->comment('显示开关'); $table->unsignedInteger('sort')->default(0)->comment('排序'); // $table->unsignedTinyInteger('status')->default(0)->comment('0未使用,1种植中,2维护中,3已废弃'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('regions'); } };