<?php

namespace App\Models\Fish;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class SpeciesTranslation extends Model
{
    protected $table = 'species_translations';

    protected $fillable = [
        'species_id',
        'lang',
        'name',
        'summary',
        'alt_names',
    ];

    protected $casts = [
        'alt_names' => 'array',
    ];

    public function species(): BelongsTo
    {
        return $this->belongsTo(Species::class);
    }
}
