functional-models
    Preparing search index...

    Function PrimaryKeyUuidProperty

    • A property that is used for Primary Keys. If no value is provided a UUID is automatically created. This property has required on it.

      Type Parameters

      • T extends string | null | undefined = string

      Parameters

      • config: PropertyConfig<T> = {}

        Additional configurations. NOTE: required is ALWAYS true.

      • additionalMetadata: {} = {}

        Any additional metadata.

      Returns Readonly<
          {
              createGetter: (
                  value: T,
                  modelData: TData,
                  modelInstance: ModelInstance<
                      Readonly<{ [s: string]: any }>,
                      object,
                      object,
                  >,
              ) => ValueGetter<T, Readonly<{ [s: string]: any }>, object, object>;
              getChoices: () => readonly ChoiceTypes[];
              getConfig: () => object;
              getConstantValue: () => T | undefined;
              getDefaultValue: () => T | undefined;
              getPropertyType: () => string;
              getValidator: (
                  valueGetter: ValueGetter<
                      T,
                      Readonly<{ [s: string]: any }>,
                      object,
                      object,
                  >,
              ) => PropertyValidator<Readonly<{ [s: string]: any }>>;
              getZod: () => ZodType<T>;
          },
      >