Download app/Models/Team/TeamMember.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 740 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Models/Team/TeamMember.php
- Command line
-
hf download hf://pnacorp/magicai/app/Models/Team/TeamMember.php
-
curl -L -o TeamMember.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Models/Team/TeamMember.php
740 Bytes
| namespace App\Models\Team; | |
| use App\Models\User; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class TeamMember extends Model | |
| { | |
| protected $fillable = [ | |
| 'team_id', | |
| 'user_id', | |
| 'role', | |
| 'email', | |
| 'status', | |
| 'allow_unlimited_credits', | |
| 'remaining_images', | |
| 'remaining_words', | |
| 'used_image_credit', | |
| 'used_word_credit', | |
| 'joined_at', | |
| ]; | |
| protected $casts = [ | |
| 'joined_at' => 'datetime', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| public function team(): BelongsTo | |
| { | |
| return $this->belongsTo(Team::class); | |
| } | |
| } | |