PrimaryKeyUuidProperty<T extends string | null | undefined = string>(
config?: PropertyConfig<T>,
additionalMetadata?: {},
): 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>;
},
>
A property that is used for Primary Keys. If no value is provided a UUID is automatically created. This property has required on it.