<?php

namespace App\Models\Tenants;

use Illuminate\Database\Eloquent\Model;

/**
 * @mixin IdeHelperTenantOptionValue
 */
class TenantOptionValue extends Model
{
    public $timestamps = false;

    protected $casts = [
        'is_active' => 'boolean',
    ];

    protected $fillable = [
        'group_id',
        'value_key',
        'value_label',
        'sort_order',
        'is_active',
    ];

    public function group()
    {
        return $this->belongsTo(TenantOptionGroup::class, 'group_id');
    }
}
