<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

use Database\Factories\CompanySubscriptionRateFactory; 

class CompanySubscriptionRates extends Model
{
    use HasFactory; 
    use SoftDeletes;

	protected $table = 'company_subscription_rates';

    protected $fillable = [
        'name',
        'description',
        'monthly_rate',
        'yearly_rate',
        'max_employee',
        'is_unlimited',
        'is_disabled',
    ];

    /**
     * Create a new factory instance for the model.
     * 
     * @return Factory 
     */
    protected static function newFactory(): Factory
    {
        return CompanySubscriptionRateFactory::new();
    }
}
