increments('id'); $table->tinyInteger('tpl_type')->index()->default('1')->comment('模板类型(1:企业 2:个人)'); $table->string('name')->comment('模板名称'); $table->tinyInteger('display')->comment('是否显示(1:显示 0:不显示)'); $table->tinyInteger('default')->comment('是否默认模板(1:是 0:不是)'); $table->integer('price')->comment('价格(积分)'); $table->string('dir')->comment('路径')->nullable(); $table->string('images')->comment('图片')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tpls'); } }