Skip to content

Models

domain.tag.models

Summary

Define the Tag aggregate model shared by the service and storage layers.

Classes

Tag

Bases: BaseModel

Tag aggregate: a named classification label, optionally nested.

Attributes:

Name Type Description
name str

Tag name, e.g. "food".

icon str

Icon key rendered for the tag.

parent_id Optional[str]

ID of the parent tag; None for a root tag.