mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:01:07 +03:30
saeid
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user