---
tags: [products, model]
module: Products
---

# [Model]Category

## Connections
[[_Products]] · [[[Model]Product]] · [[[Service]CategoryServices]] · [[[Repo]Repositories]] · [[[Controller]CategoryController]]

## Source
`Modules/Products/Models/Category.php`

## Responsibilities
- Hierarchical product categorization (parent_id self-ref)
- `canBeDeleted()` — blocks deletion if children or products exist
- AuditableTrait, HasTranslatableFields, SoftDeletes, UsesTenantConnection

## Key Relationships
| Relation | Type | Target |
|---|---|---|
| parent | belongsTo | Category (self) |
| children | hasMany | Category (self) |
| products | hasMany | [[[Model]Product]] |
