<?php

namespace Licenzo\Model;

// Prevent direct access
if (!defined('ABSPATH')) {
    exit;
}
use Licenzo\Framework\Database\Model;

class Meta extends Model
{

    protected $table = 'licenzo_meta';

    // phpcs:disable WordPress.DB.SlowDBQuery.slow_db_query_meta_key, WordPress.DB.SlowDBQuery.slow_db_query_meta_value -- Eloquent model column names, not raw DB queries.
    protected $fillable = [
        'entity_type',
        'entity_id',
        'meta_key',
        'meta_value'
    ];

    protected $casts = [
        'id'         => 'int',
        'entity_id'  => 'int',
        'meta_value' => 'array',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
    ];
    // phpcs:enable WordPress.DB.SlowDBQuery.slow_db_query_meta_key, WordPress.DB.SlowDBQuery.slow_db_query_meta_value
}
