dyna-record
    Preparing search index...

    Interface AttributeOptions

    Represents the properties of an attribute that are configurable via the Attribute decorator.

    interface AttributeOptions {
        alias?: string;
        nullable?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    alias?: string

    An optional alias for the attribute as represented in the database table.

    This alias is used as the column name in the database table corresponding to the entity. If omitted, the ORM defaults to using the attribute's key as defined within the entity model. Specifying an alias allows for mapping between the entity's attribute names in the code and their respective column names in the database, providing flexibility in naming conventions and supporting scenarios where column names in the database differ from attribute names in the code.

    nullable?: boolean

    Whether or not the attribute is nullable. Defaults to false