added teams
CI/CD / test_and_check_app (push) Failing after 2m15s
CI/CD / Publish immutable image (push) Skipped

This commit is contained in:
2026-09-11 02:28:44 +02:00
parent 76bd1536bf
commit 6220a26852
22 changed files with 818 additions and 28 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use App\Enums\TeamMemberRole;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\Pivot;
/**
* @property int $team_id
* @property int $user_id
* @property TeamMemberRole $role
* @property \Carbon\CarbonImmutable|null $created_at
* @property \Carbon\CarbonImmutable|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember whereRole($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember whereTeamId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|TeamMember whereUserId($value)
* @mixin \Eloquent
*/
class TeamMember extends Pivot
{
protected $table = 'team_members';
protected function casts(): array
{
return [
'role' => TeamMemberRole::class,
];
}
}