set consumer customers and saleInvoices
This commit is contained in:
@@ -25,58 +25,58 @@ export type AggregateCustomerLegal = {
|
||||
}
|
||||
|
||||
export type CustomerLegalMinAggregateOutputType = {
|
||||
customer_id: string | null
|
||||
company_name: string | null
|
||||
economic_code: string | null
|
||||
registration_number: string | null
|
||||
postal_code: string | null
|
||||
customer_id: string | null
|
||||
complex_id: string | null
|
||||
}
|
||||
|
||||
export type CustomerLegalMaxAggregateOutputType = {
|
||||
customer_id: string | null
|
||||
company_name: string | null
|
||||
economic_code: string | null
|
||||
registration_number: string | null
|
||||
postal_code: string | null
|
||||
customer_id: string | null
|
||||
complex_id: string | null
|
||||
}
|
||||
|
||||
export type CustomerLegalCountAggregateOutputType = {
|
||||
customer_id: number
|
||||
company_name: number
|
||||
economic_code: number
|
||||
registration_number: number
|
||||
postal_code: number
|
||||
customer_id: number
|
||||
complex_id: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type CustomerLegalMinAggregateInputType = {
|
||||
customer_id?: true
|
||||
company_name?: true
|
||||
economic_code?: true
|
||||
registration_number?: true
|
||||
postal_code?: true
|
||||
customer_id?: true
|
||||
complex_id?: true
|
||||
}
|
||||
|
||||
export type CustomerLegalMaxAggregateInputType = {
|
||||
customer_id?: true
|
||||
company_name?: true
|
||||
economic_code?: true
|
||||
registration_number?: true
|
||||
postal_code?: true
|
||||
customer_id?: true
|
||||
complex_id?: true
|
||||
}
|
||||
|
||||
export type CustomerLegalCountAggregateInputType = {
|
||||
customer_id?: true
|
||||
company_name?: true
|
||||
economic_code?: true
|
||||
registration_number?: true
|
||||
postal_code?: true
|
||||
customer_id?: true
|
||||
complex_id?: true
|
||||
_all?: true
|
||||
}
|
||||
@@ -154,11 +154,11 @@ export type CustomerLegalGroupByArgs<ExtArgs extends runtime.Types.Extensions.In
|
||||
}
|
||||
|
||||
export type CustomerLegalGroupByOutputType = {
|
||||
customer_id: string
|
||||
company_name: string
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
_count: CustomerLegalCountAggregateOutputType | null
|
||||
_min: CustomerLegalMinAggregateOutputType | null
|
||||
@@ -184,22 +184,22 @@ export type CustomerLegalWhereInput = {
|
||||
AND?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
|
||||
OR?: Prisma.CustomerLegalWhereInput[]
|
||||
NOT?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
|
||||
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
registration_number?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
complex_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
|
||||
complex?: Prisma.XOR<Prisma.ComplexScalarRelationFilter, Prisma.ComplexWhereInput>
|
||||
}
|
||||
|
||||
export type CustomerLegalOrderByWithRelationInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
company_name?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
registration_number?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
complex?: Prisma.ComplexOrderByWithRelationInput
|
||||
@@ -222,11 +222,11 @@ export type CustomerLegalWhereUniqueInput = Prisma.AtLeast<{
|
||||
}, "customer_id" | "complex_id_registration_number">
|
||||
|
||||
export type CustomerLegalOrderByWithAggregationInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
company_name?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
registration_number?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
_count?: Prisma.CustomerLegalCountOrderByAggregateInput
|
||||
_max?: Prisma.CustomerLegalMaxOrderByAggregateInput
|
||||
@@ -237,11 +237,11 @@ export type CustomerLegalScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.CustomerLegalScalarWhereWithAggregatesInput | Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.CustomerLegalScalarWhereWithAggregatesInput | Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
|
||||
customer_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
company_name?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
economic_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
registration_number?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
postal_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
customer_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
complex_id?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
|
||||
}
|
||||
|
||||
@@ -250,16 +250,16 @@ export type CustomerLegalCreateInput = {
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_legalsInput
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_legalInput
|
||||
complex: Prisma.ComplexCreateNestedOneWithoutCustomerLegalsInput
|
||||
}
|
||||
|
||||
export type CustomerLegalUncheckedCreateInput = {
|
||||
customer_id: string
|
||||
company_name: string
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
}
|
||||
|
||||
@@ -268,25 +268,25 @@ export type CustomerLegalUpdateInput = {
|
||||
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_legalsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_legalNestedInput
|
||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutCustomerLegalsNestedInput
|
||||
}
|
||||
|
||||
export type CustomerLegalUncheckedUpdateInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type CustomerLegalCreateManyInput = {
|
||||
customer_id: string
|
||||
company_name: string
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
}
|
||||
|
||||
@@ -298,11 +298,11 @@ export type CustomerLegalUpdateManyMutationInput = {
|
||||
}
|
||||
|
||||
export type CustomerLegalUncheckedUpdateManyInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
@@ -333,29 +333,29 @@ export type CustomerLegalComplex_idRegistration_numberCompoundUniqueInput = {
|
||||
}
|
||||
|
||||
export type CustomerLegalCountOrderByAggregateInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
company_name?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
registration_number?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerLegalMaxOrderByAggregateInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
company_name?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
registration_number?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerLegalMinOrderByAggregateInput = {
|
||||
customer_id?: Prisma.SortOrder
|
||||
company_name?: Prisma.SortOrder
|
||||
economic_code?: Prisma.SortOrder
|
||||
registration_number?: Prisma.SortOrder
|
||||
postal_code?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
@@ -438,15 +438,15 @@ export type CustomerLegalCreateWithoutComplexInput = {
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_legalsInput
|
||||
customer: Prisma.CustomerCreateNestedOneWithoutCustomer_legalInput
|
||||
}
|
||||
|
||||
export type CustomerLegalUncheckedCreateWithoutComplexInput = {
|
||||
customer_id: string
|
||||
company_name: string
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer_id: string
|
||||
}
|
||||
|
||||
export type CustomerLegalCreateOrConnectWithoutComplexInput = {
|
||||
@@ -479,11 +479,11 @@ export type CustomerLegalScalarWhereInput = {
|
||||
AND?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
|
||||
OR?: Prisma.CustomerLegalScalarWhereInput[]
|
||||
NOT?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
|
||||
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
registration_number?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
customer_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
complex_id?: Prisma.StringFilter<"CustomerLegal"> | string
|
||||
}
|
||||
|
||||
@@ -536,11 +536,11 @@ export type CustomerLegalUncheckedUpdateWithoutCustomerInput = {
|
||||
}
|
||||
|
||||
export type CustomerLegalCreateManyComplexInput = {
|
||||
customer_id: string
|
||||
company_name: string
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer_id: string
|
||||
}
|
||||
|
||||
export type CustomerLegalUpdateWithoutComplexInput = {
|
||||
@@ -548,33 +548,33 @@ export type CustomerLegalUpdateWithoutComplexInput = {
|
||||
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_legalsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneRequiredWithoutCustomer_legalNestedInput
|
||||
}
|
||||
|
||||
export type CustomerLegalUncheckedUpdateWithoutComplexInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type CustomerLegalUncheckedUpdateManyWithoutComplexInput = {
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
company_name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
registration_number?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type CustomerLegalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
customer_id?: boolean
|
||||
company_name?: boolean
|
||||
economic_code?: boolean
|
||||
registration_number?: boolean
|
||||
postal_code?: boolean
|
||||
customer_id?: boolean
|
||||
complex_id?: boolean
|
||||
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
||||
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
||||
@@ -583,15 +583,15 @@ export type CustomerLegalSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
|
||||
|
||||
export type CustomerLegalSelectScalar = {
|
||||
customer_id?: boolean
|
||||
company_name?: boolean
|
||||
economic_code?: boolean
|
||||
registration_number?: boolean
|
||||
postal_code?: boolean
|
||||
customer_id?: boolean
|
||||
complex_id?: boolean
|
||||
}
|
||||
|
||||
export type CustomerLegalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"customer_id" | "company_name" | "economic_code" | "registration_number" | "postal_code" | "complex_id", ExtArgs["result"]["customerLegal"]>
|
||||
export type CustomerLegalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"company_name" | "economic_code" | "registration_number" | "postal_code" | "customer_id" | "complex_id", ExtArgs["result"]["customerLegal"]>
|
||||
export type CustomerLegalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
|
||||
complex?: boolean | Prisma.ComplexDefaultArgs<ExtArgs>
|
||||
@@ -604,11 +604,11 @@ export type $CustomerLegalPayload<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
complex: Prisma.$ComplexPayload<ExtArgs>
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
customer_id: string
|
||||
company_name: string
|
||||
economic_code: string
|
||||
registration_number: string
|
||||
postal_code: string
|
||||
customer_id: string
|
||||
complex_id: string
|
||||
}, ExtArgs["result"]["customerLegal"]>
|
||||
composites: {}
|
||||
@@ -693,8 +693,8 @@ export interface CustomerLegalDelegate<ExtArgs extends runtime.Types.Extensions.
|
||||
* // Get first 10 CustomerLegals
|
||||
* const customerLegals = await prisma.customerLegal.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `customer_id`
|
||||
* const customerLegalWithCustomer_idOnly = await prisma.customerLegal.findMany({ select: { customer_id: true } })
|
||||
* // Only select the `company_name`
|
||||
* const customerLegalWithCompany_nameOnly = await prisma.customerLegal.findMany({ select: { company_name: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends CustomerLegalFindManyArgs>(args?: Prisma.SelectSubset<T, CustomerLegalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
@@ -981,11 +981,11 @@ export interface Prisma__CustomerLegalClient<T, Null = never, ExtArgs extends ru
|
||||
* Fields of the CustomerLegal model
|
||||
*/
|
||||
export interface CustomerLegalFieldRefs {
|
||||
readonly customer_id: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
readonly company_name: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
readonly economic_code: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
readonly registration_number: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
readonly postal_code: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
readonly customer_id: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
readonly complex_id: Prisma.FieldRef<"CustomerLegal", 'String'>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user