id(); $table->foreignId('state_id')->constrained('harim_states'); $table->string('state_name'); $table->string('first_name'); $table->string('last_name'); $table->string('phone_number'); $table->string('request_number'); $table->date('request_date'); $table->unsignedTinyInteger('province_id'); $table->foreign('province_id')->references('id')->on('provinces'); $table->string('province_name'); $table->unsignedSmallInteger('city_id'); $table->foreign('city_id')->references('id')->on('cities'); $table->string('city_name'); $table->unsignedBigInteger('edareh_shahri_id'); $table->foreign('edareh_shahri_id')->references('id')->on('edarate_shahri'); $table->string('county'); $table->string('division'); $table->string('village'); $table->integer('grand_area'); $table->integer('plan_area'); $table->string('requested_organization'); $table->string('plan_group'); $table->string('plan_title'); $table->string('address'); $table->string('file'); $table->json('polygon'); $table->boolean('need_road_access')->nullable(); $table->boolean('is_file_good')->nullable(); $table->boolean('is_possible')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('harims'); } };