ReadonlyaliasThe name of the attribute as defined in the database table. If not provided, it defaults to the name of the attribute. This alias is used for database operations to map the attribute to its corresponding database column.
Optional ReadonlyforeignWhen present, identifies the entity referenced by a foreign key attribute, enabling referential integrity enforcement.
ReadonlynameThe name of the attribute as defined on the entity. This serves as the primary identifier for the attribute within the ORM.
ReadonlynullableIndicates whether the attribute can be null, defining the attribute's nullability constraint within the database.
Optional ReadonlyserializersOptional serialization strategies for converting the attribute between its database representation and its entity representation. This is particularly useful for custom data types not natively supported by DynamoDB.
ReadonlytypeZod validator to run on the attribute
Represents the metadata for an attribute of an entity, including its name, alias (if any), nullability, and serialization strategies.
Serialization strategies are essential for attributes whose types do not natively exist in DynamoDB, such as
Dateobjects, enabling custom conversion between the entity representation and the database representation. These strategies ensure that the ORM can seamlessly handle a wide range of attribute types beyond those natively supported by DynamoDB.Param: options
Configuration options for the attribute metadata, including the attribute's name, optional alias, nullability, and serialization strategies.