You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
user_center/database/migrations/2021_01_22_095008_create_em...

38 lines
1.2 KiB

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEmployeeGroupTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('uc_employee_group_t', function (Blueprint $table) {
$table->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');
}
}