feat(customers): add DTOs for individual and legal customer creation
- Created CreateCustomerIndividualDto for individual customer data with fields: first_name, last_name, national_code, postal_code, is_favorite, and economic_code. - Created CreateCustomerLegalDto for legal customer data with fields: company_name, economic_code, registration_number, and postal_code.
This commit is contained in:
@@ -26,94 +26,64 @@ export type AggregateCustomer = {
|
||||
|
||||
export type CustomerMinAggregateOutputType = {
|
||||
id: string | null
|
||||
first_name: string | null
|
||||
last_name: string | null
|
||||
email: string | null
|
||||
mobile_number: string | null
|
||||
address: string | null
|
||||
is_active: boolean | null
|
||||
account_id: string | null
|
||||
complex_id: string | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
deleted_at: Date | null
|
||||
type: $Enums.CustomerType | null
|
||||
complex_id: string | null
|
||||
is_favorite: boolean | null
|
||||
}
|
||||
|
||||
export type CustomerMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
first_name: string | null
|
||||
last_name: string | null
|
||||
email: string | null
|
||||
mobile_number: string | null
|
||||
address: string | null
|
||||
is_active: boolean | null
|
||||
account_id: string | null
|
||||
complex_id: string | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
deleted_at: Date | null
|
||||
type: $Enums.CustomerType | null
|
||||
complex_id: string | null
|
||||
is_favorite: boolean | null
|
||||
}
|
||||
|
||||
export type CustomerCountAggregateOutputType = {
|
||||
id: number
|
||||
first_name: number
|
||||
last_name: number
|
||||
email: number
|
||||
mobile_number: number
|
||||
address: number
|
||||
is_active: number
|
||||
account_id: number
|
||||
complex_id: number
|
||||
created_at: number
|
||||
updated_at: number
|
||||
deleted_at: number
|
||||
type: number
|
||||
complex_id: number
|
||||
is_favorite: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type CustomerMinAggregateInputType = {
|
||||
id?: true
|
||||
first_name?: true
|
||||
last_name?: true
|
||||
email?: true
|
||||
mobile_number?: true
|
||||
address?: true
|
||||
is_active?: true
|
||||
account_id?: true
|
||||
complex_id?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
deleted_at?: true
|
||||
type?: true
|
||||
complex_id?: true
|
||||
is_favorite?: true
|
||||
}
|
||||
|
||||
export type CustomerMaxAggregateInputType = {
|
||||
id?: true
|
||||
first_name?: true
|
||||
last_name?: true
|
||||
email?: true
|
||||
mobile_number?: true
|
||||
address?: true
|
||||
is_active?: true
|
||||
account_id?: true
|
||||
complex_id?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
deleted_at?: true
|
||||
type?: true
|
||||
complex_id?: true
|
||||
is_favorite?: true
|
||||
}
|
||||
|
||||
export type CustomerCountAggregateInputType = {
|
||||
id?: true
|
||||
first_name?: true
|
||||
last_name?: true
|
||||
email?: true
|
||||
mobile_number?: true
|
||||
address?: true
|
||||
is_active?: true
|
||||
account_id?: true
|
||||
complex_id?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
deleted_at?: true
|
||||
type?: true
|
||||
complex_id?: true
|
||||
is_favorite?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -191,17 +161,12 @@ export type CustomerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
|
||||
export type CustomerGroupByOutputType = {
|
||||
id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email: string | null
|
||||
mobile_number: string
|
||||
address: string | null
|
||||
is_active: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
deleted_at: Date | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite: boolean | null
|
||||
_count: CustomerCountAggregateOutputType | null
|
||||
_min: CustomerMinAggregateOutputType | null
|
||||
_max: CustomerMaxAggregateOutputType | null
|
||||
@@ -227,69 +192,55 @@ export type CustomerWhereInput = {
|
||||
OR?: Prisma.CustomerWhereInput[]
|
||||
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
||||
id?: Prisma.StringFilter<"Customer"> | string
|
||||
first_name?: Prisma.StringFilter<"Customer"> | string
|
||||
last_name?: Prisma.StringFilter<"Customer"> | string
|
||||
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
mobile_number?: Prisma.StringFilter<"Customer"> | string
|
||||
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
is_active?: Prisma.BoolFilter<"Customer"> | boolean
|
||||
account_id?: Prisma.StringFilter<"Customer"> | string
|
||||
complex_id?: Prisma.StringFilter<"Customer"> | string
|
||||
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFilter<"Customer"> | string
|
||||
is_favorite?: Prisma.BoolNullableFilter<"Customer"> | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
customerIndividuals?: Prisma.XOR<Prisma.CustomerIndividualNullableScalarRelationFilter, Prisma.CustomerIndividualWhereInput> | null
|
||||
customerLegals?: Prisma.XOR<Prisma.CustomerLegalNullableScalarRelationFilter, Prisma.CustomerLegalWhereInput> | null
|
||||
}
|
||||
|
||||
export type CustomerOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
mobile_number?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
is_active?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
is_favorite?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualOrderByWithRelationInput
|
||||
customerLegals?: Prisma.CustomerLegalOrderByWithRelationInput
|
||||
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
||||
}
|
||||
|
||||
export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
||||
id?: string
|
||||
mobile_number?: string
|
||||
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
||||
OR?: Prisma.CustomerWhereInput[]
|
||||
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
||||
first_name?: Prisma.StringFilter<"Customer"> | string
|
||||
last_name?: Prisma.StringFilter<"Customer"> | string
|
||||
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
is_active?: Prisma.BoolFilter<"Customer"> | boolean
|
||||
account_id?: Prisma.StringFilter<"Customer"> | string
|
||||
complex_id?: Prisma.StringFilter<"Customer"> | string
|
||||
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFilter<"Customer"> | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFilter<"Customer"> | string
|
||||
is_favorite?: Prisma.BoolNullableFilter<"Customer"> | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}, "id" | "mobile_number">
|
||||
customerIndividuals?: Prisma.XOR<Prisma.CustomerIndividualNullableScalarRelationFilter, Prisma.CustomerIndividualWhereInput> | null
|
||||
customerLegals?: Prisma.XOR<Prisma.CustomerLegalNullableScalarRelationFilter, Prisma.CustomerLegalWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
export type CustomerOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
mobile_number?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
is_active?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
is_favorite?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.CustomerCountOrderByAggregateInput
|
||||
_max?: Prisma.CustomerMaxOrderByAggregateInput
|
||||
_min?: Prisma.CustomerMinOrderByAggregateInput
|
||||
@@ -300,126 +251,94 @@ export type CustomerScalarWhereWithAggregatesInput = {
|
||||
OR?: Prisma.CustomerScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
first_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
last_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
email?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
mobile_number?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
address?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
is_active?: Prisma.BoolWithAggregatesFilter<"Customer"> | boolean
|
||||
account_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
complex_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeWithAggregatesFilter<"Customer"> | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
is_favorite?: Prisma.BoolNullableWithAggregatesFilter<"Customer"> | boolean | null
|
||||
}
|
||||
|
||||
export type CustomerCreateInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email?: string | null
|
||||
mobile_number: string
|
||||
address?: string | null
|
||||
is_active?: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput
|
||||
customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email?: string | null
|
||||
mobile_number: string
|
||||
address?: string | null
|
||||
is_active?: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput
|
||||
customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput
|
||||
customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput
|
||||
customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateManyInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email?: string | null
|
||||
mobile_number: string
|
||||
address?: string | null
|
||||
is_active?: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
}
|
||||
|
||||
export type CustomerUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
}
|
||||
|
||||
export type CustomerOrderByRelevanceInput = {
|
||||
@@ -430,47 +349,37 @@ export type CustomerOrderByRelevanceInput = {
|
||||
|
||||
export type CustomerCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrder
|
||||
mobile_number?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrder
|
||||
is_active?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
deleted_at?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
is_favorite?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrder
|
||||
mobile_number?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrder
|
||||
is_active?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
deleted_at?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
is_favorite?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
email?: Prisma.SortOrder
|
||||
mobile_number?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrder
|
||||
is_active?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
deleted_at?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
is_favorite?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerScalarRelationFilter = {
|
||||
is?: Prisma.CustomerWhereInput
|
||||
isNot?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerNullableScalarRelationFilter = {
|
||||
@@ -482,14 +391,6 @@ export type StringFieldUpdateOperationsInput = {
|
||||
set?: string
|
||||
}
|
||||
|
||||
export type NullableStringFieldUpdateOperationsInput = {
|
||||
set?: string | null
|
||||
}
|
||||
|
||||
export type BoolFieldUpdateOperationsInput = {
|
||||
set?: boolean
|
||||
}
|
||||
|
||||
export type DateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string
|
||||
}
|
||||
@@ -498,6 +399,42 @@ export type NullableDateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string | null
|
||||
}
|
||||
|
||||
export type EnumCustomerTypeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.CustomerType
|
||||
}
|
||||
|
||||
export type NullableBoolFieldUpdateOperationsInput = {
|
||||
set?: boolean | null
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutCustomerIndividualsInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerIndividualsInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneRequiredWithoutCustomerIndividualsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerIndividualsInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutCustomerIndividualsInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutCustomerIndividualsInput, Prisma.CustomerUpdateWithoutCustomerIndividualsInput>, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutCustomerLegalsInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerLegalsInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneRequiredWithoutCustomerLegalsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutCustomerLegalsInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutCustomerLegalsInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutCustomerLegalsInput, Prisma.CustomerUpdateWithoutCustomerLegalsInput>, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutSales_invoicesInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput
|
||||
@@ -514,34 +451,156 @@ export type CustomerUpdateOneWithoutSales_invoicesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.CustomerUpdateWithoutSales_invoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutSales_invoicesInput = {
|
||||
export type CustomerCreateWithoutCustomerIndividualsInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email?: string | null
|
||||
mobile_number: string
|
||||
address?: string | null
|
||||
is_active?: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutCustomerIndividualsInput = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutCustomerIndividualsInput = {
|
||||
where: Prisma.CustomerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpsertWithoutCustomerIndividualsInput = {
|
||||
update: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput>
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedCreateWithoutCustomerIndividualsInput>
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateToOneWithWhereWithoutCustomerIndividualsInput = {
|
||||
where?: Prisma.CustomerWhereInput
|
||||
data: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerIndividualsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerIndividualsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpdateWithoutCustomerIndividualsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutCustomerIndividualsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutCustomerLegalsInput = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutCustomerLegalsInput = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutCustomerLegalsInput = {
|
||||
where: Prisma.CustomerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpsertWithoutCustomerLegalsInput = {
|
||||
update: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput>
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedCreateWithoutCustomerLegalsInput>
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateToOneWithWhereWithoutCustomerLegalsInput = {
|
||||
where?: Prisma.CustomerWhereInput
|
||||
data: Prisma.XOR<Prisma.CustomerUpdateWithoutCustomerLegalsInput, Prisma.CustomerUncheckedUpdateWithoutCustomerLegalsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpdateWithoutCustomerLegalsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutCustomerLegalsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutSales_invoicesInput = {
|
||||
id?: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
customerIndividuals?: Prisma.CustomerIndividualCreateNestedOneWithoutCustomerInput
|
||||
customerLegals?: Prisma.CustomerLegalCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutSales_invoicesInput = {
|
||||
id?: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email?: string | null
|
||||
mobile_number: string
|
||||
address?: string | null
|
||||
is_active?: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
deleted_at?: Date | string | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite?: boolean | null
|
||||
customerIndividuals?: Prisma.CustomerIndividualUncheckedCreateNestedOneWithoutCustomerInput
|
||||
customerLegals?: Prisma.CustomerLegalUncheckedCreateNestedOneWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutSales_invoicesInput = {
|
||||
@@ -562,32 +621,26 @@ export type CustomerUpdateToOneWithWhereWithoutSales_invoicesInput = {
|
||||
|
||||
export type CustomerUpdateWithoutSales_invoicesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
customerIndividuals?: Prisma.CustomerIndividualUpdateOneWithoutCustomerNestedInput
|
||||
customerLegals?: Prisma.CustomerLegalUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutSales_invoicesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
type?: Prisma.EnumCustomerTypeFieldUpdateOperationsInput | $Enums.CustomerType
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
is_favorite?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
||||
customerIndividuals?: Prisma.CustomerIndividualUncheckedUpdateOneWithoutCustomerNestedInput
|
||||
customerLegals?: Prisma.CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -623,18 +676,15 @@ export type CustomerCountOutputTypeCountSales_invoicesArgs<ExtArgs extends runti
|
||||
|
||||
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
first_name?: boolean
|
||||
last_name?: boolean
|
||||
email?: boolean
|
||||
mobile_number?: boolean
|
||||
address?: boolean
|
||||
is_active?: boolean
|
||||
account_id?: boolean
|
||||
complex_id?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
deleted_at?: boolean
|
||||
type?: boolean
|
||||
complex_id?: boolean
|
||||
is_favorite?: boolean
|
||||
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
||||
customerIndividuals?: boolean | Prisma.Customer$customerIndividualsArgs<ExtArgs>
|
||||
customerLegals?: boolean | Prisma.Customer$customerLegalsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["customer"]>
|
||||
|
||||
@@ -642,22 +692,19 @@ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
|
||||
export type CustomerSelectScalar = {
|
||||
id?: boolean
|
||||
first_name?: boolean
|
||||
last_name?: boolean
|
||||
email?: boolean
|
||||
mobile_number?: boolean
|
||||
address?: boolean
|
||||
is_active?: boolean
|
||||
account_id?: boolean
|
||||
complex_id?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
deleted_at?: boolean
|
||||
type?: boolean
|
||||
complex_id?: boolean
|
||||
is_favorite?: boolean
|
||||
}
|
||||
|
||||
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "first_name" | "last_name" | "email" | "mobile_number" | "address" | "is_active" | "account_id" | "complex_id" | "created_at" | "updated_at" | "deleted_at", ExtArgs["result"]["customer"]>
|
||||
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "deleted_at" | "type" | "complex_id" | "is_favorite", ExtArgs["result"]["customer"]>
|
||||
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
||||
customerIndividuals?: boolean | Prisma.Customer$customerIndividualsArgs<ExtArgs>
|
||||
customerLegals?: boolean | Prisma.Customer$customerLegalsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -665,20 +712,17 @@ export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
name: "Customer"
|
||||
objects: {
|
||||
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
customerIndividuals: Prisma.$CustomerIndividualPayload<ExtArgs> | null
|
||||
customerLegals: Prisma.$CustomerLegalPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
email: string | null
|
||||
mobile_number: string
|
||||
address: string | null
|
||||
is_active: boolean
|
||||
account_id: string
|
||||
complex_id: string
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
deleted_at: Date | null
|
||||
type: $Enums.CustomerType
|
||||
complex_id: string
|
||||
is_favorite: boolean | null
|
||||
}, ExtArgs["result"]["customer"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1020,6 +1064,8 @@ readonly fields: CustomerFieldRefs;
|
||||
export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
sales_invoices<T extends Prisma.Customer$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
customerIndividuals<T extends Prisma.Customer$customerIndividualsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$customerIndividualsArgs<ExtArgs>>): Prisma.Prisma__CustomerIndividualClient<runtime.Types.Result.GetResult<Prisma.$CustomerIndividualPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
customerLegals<T extends Prisma.Customer$customerLegalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$customerLegalsArgs<ExtArgs>>): Prisma.Prisma__CustomerLegalClient<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1050,17 +1096,12 @@ export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime
|
||||
*/
|
||||
export interface CustomerFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly first_name: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly last_name: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly email: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly mobile_number: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly address: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly is_active: Prisma.FieldRef<"Customer", 'Boolean'>
|
||||
readonly account_id: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly complex_id: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly created_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||
readonly updated_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||
readonly deleted_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||
readonly type: Prisma.FieldRef<"Customer", 'CustomerType'>
|
||||
readonly complex_id: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly is_favorite: Prisma.FieldRef<"Customer", 'Boolean'>
|
||||
}
|
||||
|
||||
|
||||
@@ -1427,6 +1468,44 @@ export type Customer$sales_invoicesArgs<ExtArgs extends runtime.Types.Extensions
|
||||
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer.customerIndividuals
|
||||
*/
|
||||
export type Customer$customerIndividualsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the CustomerIndividual
|
||||
*/
|
||||
select?: Prisma.CustomerIndividualSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the CustomerIndividual
|
||||
*/
|
||||
omit?: Prisma.CustomerIndividualOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerIndividualInclude<ExtArgs> | null
|
||||
where?: Prisma.CustomerIndividualWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer.customerLegals
|
||||
*/
|
||||
export type Customer$customerLegalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the CustomerLegal
|
||||
*/
|
||||
select?: Prisma.CustomerLegalSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the CustomerLegal
|
||||
*/
|
||||
omit?: Prisma.CustomerLegalOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerLegalInclude<ExtArgs> | null
|
||||
where?: Prisma.CustomerLegalWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer without action
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user