change the migration columns and add form request
This commit is contained in:
@@ -14,9 +14,9 @@ return new class extends Migration
|
||||
Schema::create('azmayesh_fields', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('unit');
|
||||
$table->string('unit')->nullable();
|
||||
$table->string('type');
|
||||
$table->string('option')->nullable();
|
||||
$table->json('option')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -20,12 +20,12 @@ return new class extends Migration
|
||||
$table->unsignedTinyInteger('province_id');
|
||||
$table->foreign('province_id')->references('id')->on('provinces');
|
||||
$table->string('province_name');
|
||||
$table->date('request_date');
|
||||
$table->date('report_date');
|
||||
$table->integer('request_number');
|
||||
$table->date('request_date')->nullable();
|
||||
$table->date('report_date')->nullable();
|
||||
$table->string('request_number');
|
||||
$table->string('employer');
|
||||
$table->string('contractor');
|
||||
$table->integer('work_number');
|
||||
$table->string('work_number');
|
||||
$table->string('project_name');
|
||||
$table->string('consultant');
|
||||
$table->string('applicant');
|
||||
|
||||
@@ -13,8 +13,8 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('azmayesh_samples', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('azmayesh_id')->constrained('azmayeshes');
|
||||
$table->string('azmayesh_name');
|
||||
$table->foreignId('azmayesh_id')->constrained('azmayeshes')->cascadeOnDelete();
|
||||
$table->string('azmayesh_project_name');
|
||||
$table->json('data');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user