<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Stancl\Tenancy\Database\Concerns\CentralConnection;

class TaxonomyMapable extends Model
{
    use CentralConnection;

    protected $fillable = [
        'tenant',
        'taxonomy_map_id',
        'mappable_type',
        'mappable_id',
    ];

    public $timestamps = false;

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