up()
up()
Run the migrations.
<?php
/**
* JingYao-backend
*
* @link https://gitee.com/wang-zhihui-release/jingyao-backend
* @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCompanyAssessLogsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('company_assess_logs', function (Blueprint $table) {
$table->id();
$table->integer('company_id')->comment('企业 id');
$table->integer('assess_admin_user_id');
$table->integer('assess_template_id');
$table->integer('assess_template_rule_id');
$table->integer('score');
$table->integer('assess_time');
$table->index('company_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('company_assess_logs');
}
}