from dataclasses import dataclass, field
from uuid import uuid4

from contacts.Identifier import Identifier


@dataclass(frozen=True, order=True)
class Contact:
    name: str
    notes: str
    identifier: Identifier
    uuid: str = field(default=str(uuid4()))
