This commit is contained in:
saeid
2019-05-11 19:30:05 +04:30
parent 496198b16a
commit 4abce3f4a7
49 changed files with 319 additions and 144141 deletions
@@ -17,6 +17,7 @@ class CreateTestTypesTable extends Migration
$table->bigIncrements('id');
$table->string('name')->unique();
$table->string('unique_code')->unique();
$table->string('bar_code');
$table->unsignedBigInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
$table->timestamps();
@@ -15,6 +15,13 @@ class CreateInputValuesTable extends Migration
{
Schema::create('input_values', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('value');
$table->unsignedBigInteger('input_id');
$table->foreign('input_id')->references('id')->on('inputs');
$table->unsignedBigInteger('test_result_id');
$table->foreign('test_result_id')->references('id')->on('test_results');
$table->unsignedBigInteger('option_id');
$table->foreign('option_id')->references('id')->on('options');
$table->timestamps();
});
}
@@ -19,6 +19,7 @@ class CreateUploadablesTable extends Migration
$table->string('uploadable_type');
$table->unsignedBigInteger('gallery_id');
$table->foreign('gallery_id')->references('id')->on('galleries');
$table->string('image_role');
$table->timestamps();
});
}