<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LanguagePhrase extends Model
{
    protected $fillable = [
        'lang_id',      // Foreign key to languages table
        'namespace',    // Theme namespace: NULL (core), 'default', 'tailwind', etc.
        'group',        // Translation group: checkout, email, etc.
        'key',          // Translation key
        'value',        // Translated text
    ];

    public function lang()
    {
        return $this->belongsTo(Language::class, 'locale');
    }
}
