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.1 KiB
38 lines
1.1 KiB
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateEmployeeSocialItemsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('uc_employee_social_items_t', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->bigInteger('employee_id');
|
|
$table->tinyInteger('social_type')->comment('类型');
|
|
$table->decimal('base_price')->default(0)->comment('缴费基数');
|
|
$table->decimal('personal_rate',4,2)->default(0)->comment('个人比例');
|
|
$table->decimal('unit_rate',4,2)->default(0)->comment('单位比例');
|
|
$table->decimal('personal_price')->default(0)->comment('个人缴费');
|
|
$table->decimal('unit_price')->default(0)->comment('单位缴费');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('uc_employee_social_items_t');
|
|
}
|
|
}
|
|
|