set consumer customers and saleInvoices
This commit is contained in:
@@ -25,64 +25,64 @@ export type AggregateCustomerIndividual = {
|
||||
}
|
||||
|
||||
export type CustomerIndividualMinAggregateOutputType = {
|
||||
customer_id: string | null
|
||||
first_name: string | null
|
||||
last_name: string | null
|
||||
national_id: string | null
|
||||
postal_code: string | null
|
||||
economic_code: string | null
|
||||
customer_id: string | null
|
||||
complex_id: string | null
|
||||
}
|
||||
|
||||
export type CustomerIndividualMaxAggregateOutputType = {
|
||||
customer_id: string | null
|
||||
first_name: string | null
|
||||
last_name: string | null
|
||||
national_id: string | null
|
||||
postal_code: string | null
|
||||
economic_code: string | null
|
||||
customer_id: string | null
|
||||
complex_id: string | null
|
||||
}
|
||||
|
||||
export type CustomerIndividualCountAggregateOutputType = {
|
||||
customer_id: number
|
||||
first_name: number
|
||||
last_name: number
|
||||
national_id: number
|
||||
postal_code: number
|
||||
economic_code: number
|
||||
customer_id: number
|
||||
complex_id: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type CustomerIndividualMinAggregateInputType = {
|
||||
customer_id?: true
|
||||
first_name?: true
|
||||
last_name?: true
|
||||
national_id?: true
|
||||
postal_code?: true
|
||||
economic_code?: true
|
||||
customer_id?: true
|
||||
complex_id?: true
|
||||
}
|
||||
|
||||
export type CustomerIndividualMaxAggregateInputType = {
|
||||
customer_id?: true
|
||||
first_name?: true
|
||||
last_name?: true
|
||||
national_id?: true
|
||||
postal_code?: true
|
||||
economic_code?: true
|
||||
customer_id?: true
|
||||
complex_id?: true
|
||||
}
|
||||
|
||||
export type CustomerIndividualCountAggregateInputType = {
|
||||
customer_id?: true
|
||||
first_name?: true
|
||||
last_name?: true
|
||||
national_id?: true
|
||||
postal_code?: true
|
||||
economic_code?: true
|
||||
customer_id?: true
|
||||
complex_id?: true
|
||||
_all?: true
|
||||
}
|
||||
@@ -160,12 +160,12 @@ export type CustomerIndividualGroupByArgs<ExtArgs extends runtime.Types.Extensio
|
||||
}
|
||||
|
||||
export type CustomerIndividualGroupByOutputType = {
|
||||
customer_id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code: string | null
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
_count: CustomerIndividualCountAggregateOutputType | null
|
||||
_min: CustomerIndividualMinAggregateOutputType | null
|
||||
@@ -191,24 +191,24 @@ export type CustomerIndividualWhereInput = {
|
||||
AND?: Prisma.CustomerIndividualWhereInput | Prisma.CustomerIndividualWhereInput[]
|
||||
OR?: Prisma.CustomerIndividualWhereInput[]
|
||||
NOT?: Prisma.CustomerIndividualWhereInput | Prisma.CustomerIndividualWhereInput[]
|
||||
customer_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
first_name?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
last_name?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
national_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
postal_code?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
economic_code?: Prisma.StringNullableFilter<"CustomerIndividual"> | string | null
|
||||
customer_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
complex_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
|
||||
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
||||
}
|
||||
|
||||
export type CustomerIndividualOrderByWithRelationInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
national_id?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
complex?: Prisma.ComplexOrderByWithRelationInput
|
||||
@@ -232,12 +232,12 @@ export type CustomerIndividualWhereUniqueInput = Prisma.AtLeast<{
|
||||
}, "customer_id" | "complex_id_national_id">
|
||||
|
||||
export type CustomerIndividualOrderByWithAggregationInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
national_id?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
_count?: Prisma.CustomerIndividualCountOrderByAggregateInput
|
||||
_max?: Prisma.CustomerIndividualMaxOrderByAggregateInput
|
||||
@@ -248,12 +248,12 @@ export type CustomerIndividualScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.CustomerIndividualScalarWhereWithAggregatesInput | Prisma.CustomerIndividualScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.CustomerIndividualScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.CustomerIndividualScalarWhereWithAggregatesInput | Prisma.CustomerIndividualScalarWhereWithAggregatesInput[]
|
||||
customer_id?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
first_name?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
last_name?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
national_id?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
postal_code?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
economic_code?: Prisma.StringNullableWithAggregatesFilter<"CustomerIndividual"> | string | null
|
||||
customer_id?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
complex_id?: Prisma.StringWithAggregatesFilter<"CustomerIndividual"> | string
|
||||
}
|
||||
|
||||
@@ -263,17 +263,17 @@ export type CustomerIndividualCreateInput = {
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code?: string | null
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_individualsInput
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_individualInput
|
||||
complex: Prisma.ComplexCreateNestedOneWithoutCustomerIndividualsInput
|
||||
}
|
||||
|
||||
export type CustomerIndividualUncheckedCreateInput = {
|
||||
customer_id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code?: string | null
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
}
|
||||
|
||||
@@ -283,27 +283,27 @@ export type CustomerIndividualUpdateInput = {
|
||||
national_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_individualsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_individualNestedInput
|
||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutCustomerIndividualsNestedInput
|
||||
}
|
||||
|
||||
export type CustomerIndividualUncheckedUpdateInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
national_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type CustomerIndividualCreateManyInput = {
|
||||
customer_id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code?: string | null
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
}
|
||||
|
||||
@@ -316,12 +316,12 @@ export type CustomerIndividualUpdateManyMutationInput = {
|
||||
}
|
||||
|
||||
export type CustomerIndividualUncheckedUpdateManyInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
national_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
@@ -352,32 +352,32 @@ export type CustomerIndividualComplex_idNational_idCompoundUniqueInput = {
|
||||
}
|
||||
|
||||
export type CustomerIndividualCountOrderByAggregateInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
national_id?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerIndividualMaxOrderByAggregateInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
national_id?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerIndividualMinOrderByAggregateInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
first_name?: Prisma.SortOrder
|
||||
last_name?: Prisma.SortOrder
|
||||
national_id?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
@@ -461,16 +461,16 @@ export type CustomerIndividualCreateWithoutComplexInput = {
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code?: string | null
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_individualsInput
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_individualInput
|
||||
}
|
||||
|
||||
export type CustomerIndividualUncheckedCreateWithoutComplexInput = {
|
||||
customer_id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code?: string | null
|
||||
customer_id: string
|
||||
}
|
||||
|
||||
export type CustomerIndividualCreateOrConnectWithoutComplexInput = {
|
||||
@@ -503,12 +503,12 @@ export type CustomerIndividualScalarWhereInput = {
|
||||
AND?: Prisma.CustomerIndividualScalarWhereInput | Prisma.CustomerIndividualScalarWhereInput[]
|
||||
OR?: Prisma.CustomerIndividualScalarWhereInput[]
|
||||
NOT?: Prisma.CustomerIndividualScalarWhereInput | Prisma.CustomerIndividualScalarWhereInput[]
|
||||
customer_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
first_name?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
last_name?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
national_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
postal_code?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
economic_code?: Prisma.StringNullableFilter<"CustomerIndividual"> | string | null
|
||||
customer_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
complex_id?: Prisma.StringFilter<"CustomerIndividual"> | string
|
||||
}
|
||||
|
||||
@@ -565,12 +565,12 @@ export type CustomerIndividualUncheckedUpdateWithoutCustomerInput = {
|
||||
}
|
||||
|
||||
export type CustomerIndividualCreateManyComplexInput = {
|
||||
customer_id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code?: string | null
|
||||
customer_id: string
|
||||
}
|
||||
|
||||
export type CustomerIndividualUpdateWithoutComplexInput = {
|
||||
@@ -579,36 +579,36 @@ export type CustomerIndividualUpdateWithoutComplexInput = {
|
||||
national_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_individualsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_individualNestedInput
|
||||
}
|
||||
|
||||
export type CustomerIndividualUncheckedUpdateWithoutComplexInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
national_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type CustomerIndividualUncheckedUpdateManyWithoutComplexInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
national_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type CustomerIndividualSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
customer_id?: boolean
|
||||
first_name?: boolean
|
||||
last_name?: boolean
|
||||
national_id?: boolean
|
||||
postal_code?: boolean
|
||||
economic_code?: boolean
|
||||
customer_id?: boolean
|
||||
complex_id?: boolean
|
||||
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
||||
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
||||
@@ -617,16 +617,16 @@ export type CustomerIndividualSelect<ExtArgs extends runtime.Types.Extensions.In
|
||||
|
||||
|
||||
export type CustomerIndividualSelectScalar = {
|
||||
customer_id?: boolean
|
||||
first_name?: boolean
|
||||
last_name?: boolean
|
||||
national_id?: boolean
|
||||
postal_code?: boolean
|
||||
economic_code?: boolean
|
||||
customer_id?: boolean
|
||||
complex_id?: boolean
|
||||
}
|
||||
|
||||
export type CustomerIndividualOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"customer_id" | "first_name" | "last_name" | "national_id" | "postal_code" | "economic_code" | "complex_id", ExtArgs["result"]["customerIndividual"]>
|
||||
export type CustomerIndividualOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"first_name" | "last_name" | "national_id" | "postal_code" | "economic_code" | "customer_id" | "complex_id", ExtArgs["result"]["customerIndividual"]>
|
||||
export type CustomerIndividualInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
||||
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
||||
@@ -639,12 +639,12 @@ export type $CustomerIndividualPayload<ExtArgs extends runtime.Types.Extensions.
|
||||
complex: Prisma.$ComplexPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
customer_id: string
|
||||
first_name: string
|
||||
last_name: string
|
||||
national_id: string
|
||||
postal_code: string
|
||||
economic_code: string | null
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
}, ExtArgs["result"]["customerIndividual"]>
|
||||
composites: {}
|
||||
@@ -729,8 +729,8 @@ export interface CustomerIndividualDelegate<ExtArgs extends runtime.Types.Extens
|
||||
* // Get first 10 CustomerIndividuals
|
||||
* const customerIndividuals = await prisma.customerIndividual.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `customer_id`
|
||||
* const customerIndividualWithCustomer_idOnly = await prisma.customerIndividual.findMany({ select: { customer_id: true } })
|
||||
* // Only select the `first_name`
|
||||
* const customerIndividualWithFirst_nameOnly = await prisma.customerIndividual.findMany({ select: { first_name: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends CustomerIndividualFindManyArgs>(args?: Prisma.SelectSubset<T, CustomerIndividualFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerIndividualPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
@@ -1017,12 +1017,12 @@ export interface Prisma__CustomerIndividualClient<T, Null = never, ExtArgs exten
|
||||
* Fields of the CustomerIndividual model
|
||||
*/
|
||||
export interface CustomerIndividualFieldRefs {
|
||||
readonly customer_id: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly first_name: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly last_name: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly national_id: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly postal_code: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly economic_code: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly customer_id: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
readonly complex_id: Prisma.FieldRef<"CustomerIndividual", 'String'>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user