id(); $table->foreignId('kecamatan_id')->constrained('kecamatan')->onUpdate('cascade')->onDelete('cascade'); $table->string('kode_desa',15)->nullable(); $table->string('nama'); $table->json('coordinate')->nullable(); $table->json('geojson')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('kelurahan'); } }