// users table
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->string('password');
});
// teams table
Schema::create('teams', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
});
// team_user pivot table
Schema::create('team_user', function (Blueprint $table) {
$table->unsignedBigInteger('user_id');
$table->unsignedBigInteger('team_id');
});
// users table
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->string('password');
});
// teams table
Schema::create('teams', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
});
// team_user pivot table
Schema::create('team_user', function (Blueprint $table) {
$table->unsignedBigInteger('user_id');
$table->unsignedBigInteger('team_id');
});