Spaces:
Running
Running
Download app/Models/MdSimulationJob.php from Ailixir-AI-Team/ailixir-api: direct link, hf CLI and curl.
- Browser
- Download file 998 Bytes
-
https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/ff99aeb50b353a35a7604091bfc7cfb19505bf44/app/Models/MdSimulationJob.php
- Command line
-
hf download hf://spaces/Ailixir-AI-Team/ailixir-api@ff99aeb50b353a35a7604091bfc7cfb19505bf44/app/Models/MdSimulationJob.php
-
curl -L -o MdSimulationJob.php https://huggingface.co/spaces/Ailixir-AI-Team/ailixir-api/resolve/ff99aeb50b353a35a7604091bfc7cfb19505bf44/app/Models/MdSimulationJob.php
998 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class MdSimulationJob extends Model | |
| { | |
| protected $table = 'md_simulation_jobs'; | |
| protected $fillable = [ | |
| 'user_id', | |
| 'remote_job_id', | |
| 'status', | |
| 'input_params', | |
| 'protein_original_name', | |
| 'ligand_original_name', | |
| 'result_meta', | |
| 'analysis_meta', | |
| 'error_message', | |
| ]; | |
| protected $casts = [ | |
| 'input_params' => 'array', | |
| 'result_meta' => 'array', | |
| 'analysis_meta' => 'array', | |
| ]; | |
| public function user(): BelongsTo | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| public function isCompleted(): bool | |
| { | |
| return $this->status === 'completed'; | |
| } | |
| public function isFailed(): bool | |
| { | |
| return $this->status === 'failed'; | |
| } | |
| public function isProcessing(): bool | |
| { | |
| return $this->status === 'processing'; | |
| } | |
| } | |