Rebuild admin pages around DataTable/AdminModal; restructure categories/groups and v2 groups API
Remove the generic $lib/svelte-admin CRUD layer and AdminTable.svelte; each admin route now owns its own form/modal logic. Add DataTable.svelte, superform-errors.ts, and profile-specific modal/field components. Flatten proclamation categories/groups and drop subscription levels; add the v2 groups API; update v1/v2 endpoints, serializers, auth, and regenerated Prisma client with the new migrations. Document the overhaul plan in docs/ADMIN_OVERHAUL.md.
This commit is contained in:
@@ -27,6 +27,7 @@ export type AggregateProfile = {
|
||||
export type ProfileMinAggregateOutputType = {
|
||||
id: string | null
|
||||
userId: string | null
|
||||
email: string | null
|
||||
firstName: string | null
|
||||
lastName: string | null
|
||||
phoneNumber: string | null
|
||||
@@ -36,6 +37,7 @@ export type ProfileMinAggregateOutputType = {
|
||||
export type ProfileMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
userId: string | null
|
||||
email: string | null
|
||||
firstName: string | null
|
||||
lastName: string | null
|
||||
phoneNumber: string | null
|
||||
@@ -45,6 +47,7 @@ export type ProfileMaxAggregateOutputType = {
|
||||
export type ProfileCountAggregateOutputType = {
|
||||
id: number
|
||||
userId: number
|
||||
email: number
|
||||
firstName: number
|
||||
lastName: number
|
||||
phoneNumber: number
|
||||
@@ -56,6 +59,7 @@ export type ProfileCountAggregateOutputType = {
|
||||
export type ProfileMinAggregateInputType = {
|
||||
id?: true
|
||||
userId?: true
|
||||
email?: true
|
||||
firstName?: true
|
||||
lastName?: true
|
||||
phoneNumber?: true
|
||||
@@ -65,6 +69,7 @@ export type ProfileMinAggregateInputType = {
|
||||
export type ProfileMaxAggregateInputType = {
|
||||
id?: true
|
||||
userId?: true
|
||||
email?: true
|
||||
firstName?: true
|
||||
lastName?: true
|
||||
phoneNumber?: true
|
||||
@@ -74,6 +79,7 @@ export type ProfileMaxAggregateInputType = {
|
||||
export type ProfileCountAggregateInputType = {
|
||||
id?: true
|
||||
userId?: true
|
||||
email?: true
|
||||
firstName?: true
|
||||
lastName?: true
|
||||
phoneNumber?: true
|
||||
@@ -155,7 +161,8 @@ export type ProfileGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
|
||||
export type ProfileGroupByOutputType = {
|
||||
id: string
|
||||
userId: string
|
||||
userId: string | null
|
||||
email: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -185,18 +192,20 @@ export type ProfileWhereInput = {
|
||||
OR?: Prisma.ProfileWhereInput[]
|
||||
NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[]
|
||||
id?: Prisma.StringFilter<"Profile"> | string
|
||||
userId?: Prisma.StringFilter<"Profile"> | string
|
||||
userId?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
email?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
firstName?: Prisma.StringFilter<"Profile"> | string
|
||||
lastName?: Prisma.StringFilter<"Profile"> | string
|
||||
phoneNumber?: Prisma.StringFilter<"Profile"> | string
|
||||
ghlContactId?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
||||
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
addresses?: Prisma.AddressListRelationFilter
|
||||
}
|
||||
|
||||
export type ProfileOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
phoneNumber?: Prisma.SortOrder
|
||||
@@ -207,21 +216,23 @@ export type ProfileOrderByWithRelationInput = {
|
||||
|
||||
export type ProfileWhereUniqueInput = Prisma.AtLeast<{
|
||||
id?: string
|
||||
userId?: string
|
||||
AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[]
|
||||
OR?: Prisma.ProfileWhereInput[]
|
||||
NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[]
|
||||
userId?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
email?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
firstName?: Prisma.StringFilter<"Profile"> | string
|
||||
lastName?: Prisma.StringFilter<"Profile"> | string
|
||||
phoneNumber?: Prisma.StringFilter<"Profile"> | string
|
||||
ghlContactId?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
||||
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
addresses?: Prisma.AddressListRelationFilter
|
||||
}, "id" | "userId">
|
||||
}, "id">
|
||||
|
||||
export type ProfileOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
phoneNumber?: Prisma.SortOrder
|
||||
@@ -236,7 +247,8 @@ export type ProfileScalarWhereWithAggregatesInput = {
|
||||
OR?: Prisma.ProfileScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.StringWithAggregatesFilter<"Profile"> | string
|
||||
userId?: Prisma.StringWithAggregatesFilter<"Profile"> | string
|
||||
userId?: Prisma.StringNullableWithAggregatesFilter<"Profile"> | string | null
|
||||
email?: Prisma.StringNullableWithAggregatesFilter<"Profile"> | string | null
|
||||
firstName?: Prisma.StringWithAggregatesFilter<"Profile"> | string
|
||||
lastName?: Prisma.StringWithAggregatesFilter<"Profile"> | string
|
||||
phoneNumber?: Prisma.StringWithAggregatesFilter<"Profile"> | string
|
||||
@@ -245,17 +257,19 @@ export type ProfileScalarWhereWithAggregatesInput = {
|
||||
|
||||
export type ProfileCreateInput = {
|
||||
id?: string
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
ghlContactId?: string | null
|
||||
user: Prisma.UserCreateNestedOneWithoutProfileInput
|
||||
user?: Prisma.UserCreateNestedOneWithoutProfilesInput
|
||||
addresses?: Prisma.AddressCreateNestedManyWithoutProfileInput
|
||||
}
|
||||
|
||||
export type ProfileUncheckedCreateInput = {
|
||||
id?: string
|
||||
userId: string
|
||||
userId?: string | null
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -265,17 +279,19 @@ export type ProfileUncheckedCreateInput = {
|
||||
|
||||
export type ProfileUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutProfileNestedInput
|
||||
user?: Prisma.UserUpdateOneWithoutProfilesNestedInput
|
||||
addresses?: Prisma.AddressUpdateManyWithoutProfileNestedInput
|
||||
}
|
||||
|
||||
export type ProfileUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -285,7 +301,8 @@ export type ProfileUncheckedUpdateInput = {
|
||||
|
||||
export type ProfileCreateManyInput = {
|
||||
id?: string
|
||||
userId: string
|
||||
userId?: string | null
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -294,6 +311,7 @@ export type ProfileCreateManyInput = {
|
||||
|
||||
export type ProfileUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -302,21 +320,28 @@ export type ProfileUpdateManyMutationInput = {
|
||||
|
||||
export type ProfileUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type ProfileNullableScalarRelationFilter = {
|
||||
is?: Prisma.ProfileWhereInput | null
|
||||
isNot?: Prisma.ProfileWhereInput | null
|
||||
export type ProfileListRelationFilter = {
|
||||
every?: Prisma.ProfileWhereInput
|
||||
some?: Prisma.ProfileWhereInput
|
||||
none?: Prisma.ProfileWhereInput
|
||||
}
|
||||
|
||||
export type ProfileOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ProfileCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrder
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
phoneNumber?: Prisma.SortOrder
|
||||
@@ -326,6 +351,7 @@ export type ProfileCountOrderByAggregateInput = {
|
||||
export type ProfileMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrder
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
phoneNumber?: Prisma.SortOrder
|
||||
@@ -335,6 +361,7 @@ export type ProfileMaxOrderByAggregateInput = {
|
||||
export type ProfileMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrder
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
phoneNumber?: Prisma.SortOrder
|
||||
@@ -346,36 +373,46 @@ export type ProfileScalarRelationFilter = {
|
||||
isNot?: Prisma.ProfileWhereInput
|
||||
}
|
||||
|
||||
export type ProfileCreateNestedOneWithoutUserInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput
|
||||
connect?: Prisma.ProfileWhereUniqueInput
|
||||
export type ProfileCreateNestedManyWithoutUserInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput> | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[]
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[]
|
||||
createMany?: Prisma.ProfileCreateManyUserInputEnvelope
|
||||
connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type ProfileUncheckedCreateNestedOneWithoutUserInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput
|
||||
connect?: Prisma.ProfileWhereUniqueInput
|
||||
export type ProfileUncheckedCreateNestedManyWithoutUserInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput> | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[]
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[]
|
||||
createMany?: Prisma.ProfileCreateManyUserInputEnvelope
|
||||
connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type ProfileUpdateOneWithoutUserNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput
|
||||
upsert?: Prisma.ProfileUpsertWithoutUserInput
|
||||
disconnect?: Prisma.ProfileWhereInput | boolean
|
||||
delete?: Prisma.ProfileWhereInput | boolean
|
||||
connect?: Prisma.ProfileWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProfileUpdateToOneWithWhereWithoutUserInput, Prisma.ProfileUpdateWithoutUserInput>, Prisma.ProfileUncheckedUpdateWithoutUserInput>
|
||||
export type ProfileUpdateManyWithoutUserNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput> | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[]
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[]
|
||||
upsert?: Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput | Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput[]
|
||||
createMany?: Prisma.ProfileCreateManyUserInputEnvelope
|
||||
set?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
disconnect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
delete?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
update?: Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput | Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput[]
|
||||
updateMany?: Prisma.ProfileUpdateManyWithWhereWithoutUserInput | Prisma.ProfileUpdateManyWithWhereWithoutUserInput[]
|
||||
deleteMany?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type ProfileUncheckedUpdateOneWithoutUserNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput
|
||||
upsert?: Prisma.ProfileUpsertWithoutUserInput
|
||||
disconnect?: Prisma.ProfileWhereInput | boolean
|
||||
delete?: Prisma.ProfileWhereInput | boolean
|
||||
connect?: Prisma.ProfileWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProfileUpdateToOneWithWhereWithoutUserInput, Prisma.ProfileUpdateWithoutUserInput>, Prisma.ProfileUncheckedUpdateWithoutUserInput>
|
||||
export type ProfileUncheckedUpdateManyWithoutUserNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput> | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[]
|
||||
connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[]
|
||||
upsert?: Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput | Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput[]
|
||||
createMany?: Prisma.ProfileCreateManyUserInputEnvelope
|
||||
set?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
disconnect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
delete?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[]
|
||||
update?: Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput | Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput[]
|
||||
updateMany?: Prisma.ProfileUpdateManyWithWhereWithoutUserInput | Prisma.ProfileUpdateManyWithWhereWithoutUserInput[]
|
||||
deleteMany?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type ProfileCreateNestedOneWithoutAddressesInput = {
|
||||
@@ -394,6 +431,7 @@ export type ProfileUpdateOneRequiredWithoutAddressesNestedInput = {
|
||||
|
||||
export type ProfileCreateWithoutUserInput = {
|
||||
id?: string
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -403,6 +441,7 @@ export type ProfileCreateWithoutUserInput = {
|
||||
|
||||
export type ProfileUncheckedCreateWithoutUserInput = {
|
||||
id?: string
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -415,47 +454,54 @@ export type ProfileCreateOrConnectWithoutUserInput = {
|
||||
create: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
}
|
||||
|
||||
export type ProfileUpsertWithoutUserInput = {
|
||||
update: Prisma.XOR<Prisma.ProfileUpdateWithoutUserInput, Prisma.ProfileUncheckedUpdateWithoutUserInput>
|
||||
create: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
where?: Prisma.ProfileWhereInput
|
||||
export type ProfileCreateManyUserInputEnvelope = {
|
||||
data: Prisma.ProfileCreateManyUserInput | Prisma.ProfileCreateManyUserInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type ProfileUpdateToOneWithWhereWithoutUserInput = {
|
||||
where?: Prisma.ProfileWhereInput
|
||||
export type ProfileUpsertWithWhereUniqueWithoutUserInput = {
|
||||
where: Prisma.ProfileWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.ProfileUpdateWithoutUserInput, Prisma.ProfileUncheckedUpdateWithoutUserInput>
|
||||
create: Prisma.XOR<Prisma.ProfileCreateWithoutUserInput, Prisma.ProfileUncheckedCreateWithoutUserInput>
|
||||
}
|
||||
|
||||
export type ProfileUpdateWithWhereUniqueWithoutUserInput = {
|
||||
where: Prisma.ProfileWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.ProfileUpdateWithoutUserInput, Prisma.ProfileUncheckedUpdateWithoutUserInput>
|
||||
}
|
||||
|
||||
export type ProfileUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
addresses?: Prisma.AddressUpdateManyWithoutProfileNestedInput
|
||||
export type ProfileUpdateManyWithWhereWithoutUserInput = {
|
||||
where: Prisma.ProfileScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.ProfileUpdateManyMutationInput, Prisma.ProfileUncheckedUpdateManyWithoutUserInput>
|
||||
}
|
||||
|
||||
export type ProfileUncheckedUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
addresses?: Prisma.AddressUncheckedUpdateManyWithoutProfileNestedInput
|
||||
export type ProfileScalarWhereInput = {
|
||||
AND?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[]
|
||||
OR?: Prisma.ProfileScalarWhereInput[]
|
||||
NOT?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[]
|
||||
id?: Prisma.StringFilter<"Profile"> | string
|
||||
userId?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
email?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
firstName?: Prisma.StringFilter<"Profile"> | string
|
||||
lastName?: Prisma.StringFilter<"Profile"> | string
|
||||
phoneNumber?: Prisma.StringFilter<"Profile"> | string
|
||||
ghlContactId?: Prisma.StringNullableFilter<"Profile"> | string | null
|
||||
}
|
||||
|
||||
export type ProfileCreateWithoutAddressesInput = {
|
||||
id?: string
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
ghlContactId?: string | null
|
||||
user: Prisma.UserCreateNestedOneWithoutProfileInput
|
||||
user?: Prisma.UserCreateNestedOneWithoutProfilesInput
|
||||
}
|
||||
|
||||
export type ProfileUncheckedCreateWithoutAddressesInput = {
|
||||
id?: string
|
||||
userId: string
|
||||
userId?: string | null
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -480,16 +526,56 @@ export type ProfileUpdateToOneWithWhereWithoutAddressesInput = {
|
||||
|
||||
export type ProfileUpdateWithoutAddressesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutProfileNestedInput
|
||||
user?: Prisma.UserUpdateOneWithoutProfilesNestedInput
|
||||
}
|
||||
|
||||
export type ProfileUncheckedUpdateWithoutAddressesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type ProfileCreateManyUserInput = {
|
||||
id?: string
|
||||
email?: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
ghlContactId?: string | null
|
||||
}
|
||||
|
||||
export type ProfileUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
addresses?: Prisma.AddressUpdateManyWithoutProfileNestedInput
|
||||
}
|
||||
|
||||
export type ProfileUncheckedUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
addresses?: Prisma.AddressUncheckedUpdateManyWithoutProfileNestedInput
|
||||
}
|
||||
|
||||
export type ProfileUncheckedUpdateManyWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -530,11 +616,12 @@ export type ProfileCountOutputTypeCountAddressesArgs<ExtArgs extends runtime.Typ
|
||||
export type ProfileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
userId?: boolean
|
||||
email?: boolean
|
||||
firstName?: boolean
|
||||
lastName?: boolean
|
||||
phoneNumber?: boolean
|
||||
ghlContactId?: boolean
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.Profile$userArgs<ExtArgs>
|
||||
addresses?: boolean | Prisma.Profile$addressesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProfileCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["profile"]>
|
||||
@@ -542,54 +629,58 @@ export type ProfileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
export type ProfileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
userId?: boolean
|
||||
email?: boolean
|
||||
firstName?: boolean
|
||||
lastName?: boolean
|
||||
phoneNumber?: boolean
|
||||
ghlContactId?: boolean
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.Profile$userArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["profile"]>
|
||||
|
||||
export type ProfileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
userId?: boolean
|
||||
email?: boolean
|
||||
firstName?: boolean
|
||||
lastName?: boolean
|
||||
phoneNumber?: boolean
|
||||
ghlContactId?: boolean
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.Profile$userArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["profile"]>
|
||||
|
||||
export type ProfileSelectScalar = {
|
||||
id?: boolean
|
||||
userId?: boolean
|
||||
email?: boolean
|
||||
firstName?: boolean
|
||||
lastName?: boolean
|
||||
phoneNumber?: boolean
|
||||
ghlContactId?: boolean
|
||||
}
|
||||
|
||||
export type ProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "firstName" | "lastName" | "phoneNumber" | "ghlContactId", ExtArgs["result"]["profile"]>
|
||||
export type ProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "email" | "firstName" | "lastName" | "phoneNumber" | "ghlContactId", ExtArgs["result"]["profile"]>
|
||||
export type ProfileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.Profile$userArgs<ExtArgs>
|
||||
addresses?: boolean | Prisma.Profile$addressesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProfileCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type ProfileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.Profile$userArgs<ExtArgs>
|
||||
}
|
||||
export type ProfileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.Profile$userArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $ProfilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Profile"
|
||||
objects: {
|
||||
user: Prisma.$UserPayload<ExtArgs>
|
||||
user: Prisma.$UserPayload<ExtArgs> | null
|
||||
addresses: Prisma.$AddressPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
userId: string
|
||||
userId: string | null
|
||||
email: string | null
|
||||
firstName: string
|
||||
lastName: string
|
||||
phoneNumber: string
|
||||
@@ -988,7 +1079,7 @@ readonly fields: ProfileFieldRefs;
|
||||
*/
|
||||
export interface Prisma__ProfileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
user<T extends Prisma.Profile$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Profile$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
addresses<T extends Prisma.Profile$addressesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Profile$addressesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AddressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
@@ -1021,6 +1112,7 @@ export interface Prisma__ProfileClient<T, Null = never, ExtArgs extends runtime.
|
||||
export interface ProfileFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Profile", 'String'>
|
||||
readonly userId: Prisma.FieldRef<"Profile", 'String'>
|
||||
readonly email: Prisma.FieldRef<"Profile", 'String'>
|
||||
readonly firstName: Prisma.FieldRef<"Profile", 'String'>
|
||||
readonly lastName: Prisma.FieldRef<"Profile", 'String'>
|
||||
readonly phoneNumber: Prisma.FieldRef<"Profile", 'String'>
|
||||
@@ -1425,6 +1517,25 @@ export type ProfileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Profile.user
|
||||
*/
|
||||
export type Profile$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the User
|
||||
*/
|
||||
select?: Prisma.UserSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the User
|
||||
*/
|
||||
omit?: Prisma.UserOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.UserInclude<ExtArgs> | null
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* Profile.addresses
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user