char('id', 36)->primary(); $table->float('area'); $table->string('color'); $table->unsignedBigInteger('layerId'); $table->char('parentId', 36)->nullable(); $table->char('polygon_id', 36)->index(); // UUID to match the type in polygons table $table->timestamps(); }); } } public function down(): void { Schema::dropIfExists('triangles'); } };