<?php

namespace ZenoChatbot\Model;

use ZenoChatbot\Framework\Database\Model;

/**
 * Meta Model
 *
 * Represents metadata for any entity in the system
 */
class Meta extends Model
{
    /**
     * Table name
     */
    protected $table = 'zenochatbot_meta';

    /**
     * Primary key
     */
    protected $primaryKey = 'id';

    /**
     * Fillable attributes
     */
    protected $fillable = [
        'entity_type',
        'entity_id',
        'meta_key',
        'meta_value'
    ];

    /**
     * Attributes that should be cast
     */
    protected $casts = [
        'id' => 'int',
        'entity_id' => 'int',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
    ];
}
