<?php

namespace App\Models;

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

class CategorySeo extends Model
{
    protected $table = 'category_seo';
    protected $primaryKey = 'category_id';
    public $incrementing = false;
    public $timestamps = false;

    protected $fillable = [
        'category_id','meta_title','meta_description',
        'meta_keywords','canonical_url'
    ];

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