id(); $table->bigInteger('pid')->default(0)->comment('父ID'); $table->string('title','20')->comment('岗位名称'); $table->tinyInteger('level')->default(1)->comment('数据等级'); $table->string('description','200')->default('')->comment('岗位描述'); $table->decimal('base_salary')->default(0)->comment('基础工资'); $table->tinyInteger('status')->default(2)->comment('岗位状态: 1 开启 2 关闭'); $table->string('rules','255')->default('')->comment('规则id,多个规则 , 隔开'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('uc_employee_group_t'); } }