mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 08:51:06 +03:30
change Item & Package & TestResult & TestType
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTestResultsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('test_results', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('info');
|
||||
$table->string('cycle_number');
|
||||
$table->string('result');
|
||||
$table->text('description');
|
||||
$table->smallInteger('verified');
|
||||
$table->string('device_id');
|
||||
// $table->string('device_label');
|
||||
$table->integer('autoclave_id');
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
$table->unsignedBigInteger('test_type_id');
|
||||
$table->foreign('test_type_id')->references('id')->on('test_types');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('test_results');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user