PrimaryKeyUuidProperty(
config?: PropertyConfig<string>,
additionalMetadata?: {},
): Readonly<
{
createGetter: (
value: string,
modelData: Readonly,
modelInstance: ModelInstance<
Readonly<{ [s: string]: any }>,
object,
object,
>,
) => ValueGetter<string, Readonly<{ [s: string]: any }>, object, object>;
getChoices: () => readonly ChoiceTypes[];
getConfig: () => object;
getConstantValue: () => undefined | string;
getDefaultValue: () => undefined | string;
getPropertyType: () => string;
getValidator: (
valueGetter: ValueGetter<
string,
Readonly<{ [s: string]: any }>,
object,
object,
>,
) => PropertyValidator<Readonly<{ [s: string]: any }>>;
},
>
A property that is used for Primary Keys. If no value is provided a UUID is automatically created. This property has required on it.