Spaces:
Running
Running
Download app/Models/TargetLookup.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/f0dbfedd4517c01e2ac52ad175f104f22391223d/app/Models/TargetLookup.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api@f0dbfedd4517c01e2ac52ad175f104f22391223d/app/Models/TargetLookup.php
-
curl -L -o TargetLookup.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/f0dbfedd4517c01e2ac52ad175f104f22391223d/app/Models/TargetLookup.php
418 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class TargetLookup extends Model | |
| { | |
| protected $fillable = ['user_id', 'input', 'output', 'status']; | |
| protected $casts = [ | |
| 'input' => 'array', | |
| 'output' => 'array', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| } | |