change the migration columns and add form request

This commit is contained in:
2024-11-03 06:26:26 +00:00
parent e9098b0a55
commit 1a15a5d7ed
16 changed files with 444 additions and 66 deletions

View File

@@ -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();
});
}

View File

@@ -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');

View File

@@ -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();
});