<?php

namespace App\Models;

use App\Models\BaseModel;

class Dimension extends BaseModel
{
    protected $fillable = [
        'company_id','slot','name','is_active','is_required'
    ];

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

    public function company()
    {
        return $this->belongsTo(Company::class);
    }

    public function values()
    {
        return $this->hasMany(DimensionValue::class);
    }
}
