Entity
    Preparing search index...

    Class UUIDField<TRequireExplicitCache>

    EntityFieldDefinition for a column with a JS string type. Enforces that the string is a valid UUID and that it is lowercase. Entity requires UUIDs to be lowercase since most databases (e.g. Postgres) treat UUIDs as case-insensitive, which can lead to unexpected entity load results if mixed-case UUIDs are used.

    Type Parameters

    • TRequireExplicitCache extends boolean

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _cacheRawSentinel: TRequireExplicitCache
    association:
        | EntityAssociationDefinition<any, any, any, any, any, any>
        | undefined
    cache: boolean
    columnName: string

    Methods

    • Validates input value for a field of this type. Null and undefined are considered valid by default. This is used for things like:

      • EntityLoader.loadByFieldValue - to ensure the value being loaded by is a valid value
      • EntityMutator.setField - to ensure the value being set is a valid value

      Parameters

      • value: string | null | undefined

      Returns boolean