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.
38 lines
1.0 KiB
38 lines
1.0 KiB
4 years ago
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateEmployeeRewardPunishmentTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('uc_employee_reward_punishment_t', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->bigInteger('employee_id')->comment('员工ID');
|
||
|
$table->mediumInteger('type')->comment('奖惩类型')->index();
|
||
|
$table->string('date', 10)->comment('奖惩日期')->index();
|
||
|
$table->decimal('price')->comment('奖惩金额');
|
||
|
$table->string('remark')->default('')->comment('备注');
|
||
|
$table->tinyInteger('status')->default(1)->comment('状态');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('uc_employee_reward_punishment_t');
|
||
|
}
|
||
|
}
|