uuid('id')->primary(); $table->foreignUuid('user_id')->constrained()->cascadeOnDelete(); $table->string('name'); $table->string('color', 50); $table->timestamps(); $table->softDeletes(); $table->unique(['user_id', 'name']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('labels'); } };