Download app/Models/Integration/UserIntegration.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Models/Integration/UserIntegration.php
- Command line
-
hf download hf://pnacorp/magicai/app/Models/Integration/UserIntegration.php
-
curl -L -o UserIntegration.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Models/Integration/UserIntegration.php
590 Bytes
| namespace App\Models\Integration; | |
| use App\Models\User; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class UserIntegration extends Model | |
| { | |
| protected $table = 'user_integrations'; | |
| protected $fillable = ['integration_id', 'user_id', 'credentials']; | |
| protected $casts = [ | |
| 'credentials' => 'array', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| public function integration(): BelongsTo | |
| { | |
| return $this->belongsTo(Integration::class); | |
| } | |
| } | |