<?php

namespace App\Models;

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

class SongSlide extends Model
{
    use HasFactory;

    protected $fillable = [
        'song_group_id',
        'order',
        'text_content',
        'text_content_translated',
        'notes',
    ];

    public function group(): BelongsTo
    {
        return $this->belongsTo(SongGroup::class, 'song_group_id');
    }
}
