feat: product team members

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Doar Mihai
2026-10-17 16:04:25 +03:00
co-authored by Claude Sonnet 5.5
parent 768c814762
commit fbb4862454
11 changed files with 321 additions and 5 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('product_members', function (Blueprint $table) {
$table->id();
$table->foreignId('product_id')->constrained()->cascadeOnDelete();
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->string('role', 100);
$table->timestamps();
$table->unique(['product_id', 'user_id']);
});
}
public function down(): void
{
Schema::dropIfExists('product_members');
}
};