Skip to main content

ItemPublic

This class represents the public schema for an item, extending the base item definition with unique identifiers and metadata. It includes the item's unique ID, the owner's ID, and an optional creation timestamp for use in public-facing API responses.

Attributes

AttributeTypeDescription
iduuid.UUIDUnique identifier for the item record, represented as a UUID.
owner_iduuid.UUIDUnique identifier of the user who owns or created this item.
created_at`datetimeNone` = null

Constructor

Signature

def ItemPublic(
id: uuid.UUID,
owner_id: uuid.UUID,
created_at: datetime | None = None
) - > null

Parameters

NameTypeDescription
iduuid.UUIDThe unique identifier for the item.
owner_iduuid.UUIDThe unique identifier of the user who owns the item.
created_at`datetimeNone` = None

Signature

def ItemPublic(
id: uuid.UUID,
owner_id: uuid.UUID,
created_at: datetime | None = None
) - > null

Parameters

NameTypeDescription
iduuid.UUIDThe unique identifier for the item record.
owner_iduuid.UUIDThe unique identifier of the user who owns this item.
created_at`datetimeNone` = None