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.

42 lines
1.2 KiB

9 months ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAdverseTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('adverse', function (Blueprint $table) {
$table->id();
# Columns相关项目、相关订单、不良事件类型、描述、解决时间、解决人、解决状态、解决结果描述
$table->integer('project_id')->nullable();
$table->integer('order_id')->nullable();
$table->string('type')->nullable();
$table->string('description')->nullable();
$table->string('solved_at')->nullable();
$table->string('solved_by')->nullable();
$table->string('solved_status')->nullable();
$table->string('solved_result')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('adverse');
}
}