<?php

namespace Webkul\Accounting\Models;

use Illuminate\Database\Eloquent\Relations\HasMany;
use Webkul\Account\Models\Category as BaseCategory;
use Webkul\Chatter\Traits\HasChatter;

class Category extends BaseCategory
{
    use HasChatter;

    public const ACTIVITY_PLAN_PLUGIN = 'accounting';

    public function __construct(array $attributes = [])
    {
        $this->mergeFillable([
            'product_properties_definition',
        ]);

        parent::__construct($attributes);
    }

    public function products(): HasMany
    {
        return $this->hasMany(Product::class);
    }
}
