init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -41,9 +41,6 @@ export type CustomerMinAggregateOutputType = {
|
||||
email: string | null
|
||||
mobileNumber: string | null
|
||||
address: string | null
|
||||
city: string | null
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -57,9 +54,6 @@ export type CustomerMaxAggregateOutputType = {
|
||||
email: string | null
|
||||
mobileNumber: string | null
|
||||
address: string | null
|
||||
city: string | null
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
@@ -73,9 +67,6 @@ export type CustomerCountAggregateOutputType = {
|
||||
email: number
|
||||
mobileNumber: number
|
||||
address: number
|
||||
city: number
|
||||
state: number
|
||||
country: number
|
||||
isActive: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
@@ -99,9 +90,6 @@ export type CustomerMinAggregateInputType = {
|
||||
email?: true
|
||||
mobileNumber?: true
|
||||
address?: true
|
||||
city?: true
|
||||
state?: true
|
||||
country?: true
|
||||
isActive?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -115,9 +103,6 @@ export type CustomerMaxAggregateInputType = {
|
||||
email?: true
|
||||
mobileNumber?: true
|
||||
address?: true
|
||||
city?: true
|
||||
state?: true
|
||||
country?: true
|
||||
isActive?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -131,9 +116,6 @@ export type CustomerCountAggregateInputType = {
|
||||
email?: true
|
||||
mobileNumber?: true
|
||||
address?: true
|
||||
city?: true
|
||||
state?: true
|
||||
country?: true
|
||||
isActive?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
@@ -234,9 +216,6 @@ export type CustomerGroupByOutputType = {
|
||||
email: string | null
|
||||
mobileNumber: string
|
||||
address: string | null
|
||||
city: string | null
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
@@ -273,15 +252,10 @@ export type CustomerWhereInput = {
|
||||
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
mobileNumber?: Prisma.StringFilter<"Customer"> | string
|
||||
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
city?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
state?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
country?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Customer"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}
|
||||
|
||||
@@ -292,15 +266,10 @@ export type CustomerOrderByWithRelationInput = {
|
||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
mobileNumber?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
city?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
state?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
orders?: Prisma.OrderOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
salesInvoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
||||
}
|
||||
@@ -315,15 +284,10 @@ export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
||||
lastName?: Prisma.StringFilter<"Customer"> | string
|
||||
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
city?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
state?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
country?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Customer"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
@@ -334,9 +298,6 @@ export type CustomerOrderByWithAggregationInput = {
|
||||
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
mobileNumber?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
city?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
state?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -358,9 +319,6 @@ export type CustomerScalarWhereWithAggregatesInput = {
|
||||
email?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
mobileNumber?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
||||
address?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
city?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
state?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
country?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
isActive?: Prisma.BoolWithAggregatesFilter<"Customer"> | boolean
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||
@@ -373,15 +331,10 @@ export type CustomerCreateInput = {
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
@@ -392,15 +345,10 @@ export type CustomerUncheckedCreateInput = {
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
@@ -410,15 +358,10 @@ export type CustomerUpdateInput = {
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
@@ -429,15 +372,10 @@ export type CustomerUncheckedUpdateInput = {
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
@@ -448,9 +386,6 @@ export type CustomerCreateManyInput = {
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -463,9 +398,6 @@ export type CustomerUpdateManyMutationInput = {
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -479,20 +411,12 @@ export type CustomerUncheckedUpdateManyInput = {
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type CustomerNullableScalarRelationFilter = {
|
||||
is?: Prisma.CustomerWhereInput | null
|
||||
isNot?: Prisma.CustomerWhereInput | null
|
||||
}
|
||||
|
||||
export type CustomerOrderByRelevanceInput = {
|
||||
fields: Prisma.CustomerOrderByRelevanceFieldEnum | Prisma.CustomerOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -506,9 +430,6 @@ export type CustomerCountOrderByAggregateInput = {
|
||||
email?: Prisma.SortOrder
|
||||
mobileNumber?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrder
|
||||
city?: Prisma.SortOrder
|
||||
state?: Prisma.SortOrder
|
||||
country?: Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -526,9 +447,6 @@ export type CustomerMaxOrderByAggregateInput = {
|
||||
email?: Prisma.SortOrder
|
||||
mobileNumber?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrder
|
||||
city?: Prisma.SortOrder
|
||||
state?: Prisma.SortOrder
|
||||
country?: Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -542,9 +460,6 @@ export type CustomerMinOrderByAggregateInput = {
|
||||
email?: Prisma.SortOrder
|
||||
mobileNumber?: Prisma.SortOrder
|
||||
address?: Prisma.SortOrder
|
||||
city?: Prisma.SortOrder
|
||||
state?: Prisma.SortOrder
|
||||
country?: Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
@@ -555,20 +470,13 @@ export type CustomerSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutOrdersInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
export type CustomerNullableScalarRelationFilter = {
|
||||
is?: Prisma.CustomerWhereInput | null
|
||||
isNot?: Prisma.CustomerWhereInput | null
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneWithoutOrdersNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutOrdersInput
|
||||
disconnect?: Prisma.CustomerWhereInput | boolean
|
||||
delete?: Prisma.CustomerWhereInput | boolean
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutOrdersInput, Prisma.CustomerUpdateWithoutOrdersInput>, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>
|
||||
export type BoolFieldUpdateOperationsInput = {
|
||||
set?: boolean
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutSalesInvoicesInput = {
|
||||
@@ -587,123 +495,16 @@ export type CustomerUpdateOneWithoutSalesInvoicesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSalesInvoicesInput, Prisma.CustomerUpdateWithoutSalesInvoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutStockMovementsInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutStockMovementsInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneWithoutStockMovementsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutStockMovementsInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutStockMovementsInput
|
||||
disconnect?: Prisma.CustomerWhereInput | boolean
|
||||
delete?: Prisma.CustomerWhereInput | boolean
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.CustomerUpdateWithoutStockMovementsInput>, Prisma.CustomerUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutOrdersInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutOrdersInput = {
|
||||
id?: number
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutOrdersInput = {
|
||||
where: Prisma.CustomerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
export type CustomerUpsertWithoutOrdersInput = {
|
||||
update: Prisma.XOR<Prisma.CustomerUpdateWithoutOrdersInput, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateToOneWithWhereWithoutOrdersInput = {
|
||||
where?: Prisma.CustomerWhereInput
|
||||
data: Prisma.XOR<Prisma.CustomerUpdateWithoutOrdersInput, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
export type CustomerUpdateWithoutOrdersInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutOrdersInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutSalesInvoicesInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
@@ -713,15 +514,10 @@ export type CustomerUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutSalesInvoicesInput = {
|
||||
@@ -746,15 +542,10 @@ export type CustomerUpdateWithoutSalesInvoicesInput = {
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
@@ -764,101 +555,10 @@ export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutStockMovementsInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutStockMovementsInput = {
|
||||
id?: number
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutStockMovementsInput = {
|
||||
where: Prisma.CustomerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpsertWithoutStockMovementsInput = {
|
||||
update: Prisma.XOR<Prisma.CustomerUpdateWithoutStockMovementsInput, Prisma.CustomerUncheckedUpdateWithoutStockMovementsInput>
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateToOneWithWhereWithoutStockMovementsInput = {
|
||||
where?: Prisma.CustomerWhereInput
|
||||
data: Prisma.XOR<Prisma.CustomerUpdateWithoutStockMovementsInput, Prisma.CustomerUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpdateWithoutStockMovementsInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutStockMovementsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -867,14 +567,10 @@ export type CustomerUncheckedUpdateWithoutStockMovementsInput = {
|
||||
*/
|
||||
|
||||
export type CustomerCountOutputType = {
|
||||
orders: number
|
||||
stockMovements: number
|
||||
salesInvoices: number
|
||||
}
|
||||
|
||||
export type CustomerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orders?: boolean | CustomerCountOutputTypeCountOrdersArgs
|
||||
stockMovements?: boolean | CustomerCountOutputTypeCountStockMovementsArgs
|
||||
salesInvoices?: boolean | CustomerCountOutputTypeCountSalesInvoicesArgs
|
||||
}
|
||||
|
||||
@@ -888,20 +584,6 @@ export type CustomerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Ext
|
||||
select?: Prisma.CustomerCountOutputTypeSelect<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* CustomerCountOutputType without action
|
||||
*/
|
||||
export type CustomerCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.OrderWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* CustomerCountOutputType without action
|
||||
*/
|
||||
export type CustomerCountOutputTypeCountStockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* CustomerCountOutputType without action
|
||||
*/
|
||||
@@ -917,15 +599,10 @@ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
email?: boolean
|
||||
mobileNumber?: boolean
|
||||
address?: boolean
|
||||
city?: boolean
|
||||
state?: boolean
|
||||
country?: boolean
|
||||
isActive?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Customer$stockMovementsArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["customer"]>
|
||||
@@ -939,19 +616,14 @@ export type CustomerSelectScalar = {
|
||||
email?: boolean
|
||||
mobileNumber?: boolean
|
||||
address?: boolean
|
||||
city?: boolean
|
||||
state?: boolean
|
||||
country?: boolean
|
||||
isActive?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
}
|
||||
|
||||
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstName" | "lastName" | "email" | "mobileNumber" | "address" | "city" | "state" | "country" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["customer"]>
|
||||
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstName" | "lastName" | "email" | "mobileNumber" | "address" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["customer"]>
|
||||
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Customer$stockMovementsArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
@@ -959,8 +631,6 @@ export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Customer"
|
||||
objects: {
|
||||
orders: Prisma.$OrderPayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
salesInvoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
@@ -970,9 +640,6 @@ export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
email: string | null
|
||||
mobileNumber: string
|
||||
address: string | null
|
||||
city: string | null
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
@@ -1317,8 +984,6 @@ 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"
|
||||
orders<T extends Prisma.Customer$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Customer$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
salesInvoices<T extends Prisma.Customer$salesInvoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$salesInvoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
@@ -1355,9 +1020,6 @@ export interface CustomerFieldRefs {
|
||||
readonly email: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly mobileNumber: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly address: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly city: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly state: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly country: Prisma.FieldRef<"Customer", 'String'>
|
||||
readonly isActive: Prisma.FieldRef<"Customer", 'Boolean'>
|
||||
readonly createdAt: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"Customer", 'DateTime'>
|
||||
@@ -1704,54 +1366,6 @@ export type CustomerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer.orders
|
||||
*/
|
||||
export type Customer$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Order
|
||||
*/
|
||||
select?: Prisma.OrderSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Order
|
||||
*/
|
||||
omit?: Prisma.OrderOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.OrderInclude<ExtArgs> | null
|
||||
where?: Prisma.OrderWhereInput
|
||||
orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[]
|
||||
cursor?: Prisma.OrderWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer.stockMovements
|
||||
*/
|
||||
export type Customer$stockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockMovement
|
||||
*/
|
||||
select?: Prisma.StockMovementSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockMovement
|
||||
*/
|
||||
omit?: Prisma.StockMovementOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockMovementInclude<ExtArgs> | null
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockMovementWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer.salesInvoices
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -30,14 +30,12 @@ export type SalesInvoiceAvgAggregateOutputType = {
|
||||
id: number | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceSumAggregateOutputType = {
|
||||
id: number | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceMinAggregateOutputType = {
|
||||
@@ -48,7 +46,6 @@ export type SalesInvoiceMinAggregateOutputType = {
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceMaxAggregateOutputType = {
|
||||
@@ -59,7 +56,6 @@ export type SalesInvoiceMaxAggregateOutputType = {
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
customerId: number | null
|
||||
posAccountId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceCountAggregateOutputType = {
|
||||
@@ -70,7 +66,6 @@ export type SalesInvoiceCountAggregateOutputType = {
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
customerId: number
|
||||
posAccountId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -79,14 +74,12 @@ export type SalesInvoiceAvgAggregateInputType = {
|
||||
id?: true
|
||||
totalAmount?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceSumAggregateInputType = {
|
||||
id?: true
|
||||
totalAmount?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceMinAggregateInputType = {
|
||||
@@ -97,7 +90,6 @@ export type SalesInvoiceMinAggregateInputType = {
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceMaxAggregateInputType = {
|
||||
@@ -108,7 +100,6 @@ export type SalesInvoiceMaxAggregateInputType = {
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceCountAggregateInputType = {
|
||||
@@ -119,7 +110,6 @@ export type SalesInvoiceCountAggregateInputType = {
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
customerId?: true
|
||||
posAccountId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -217,7 +207,6 @@ export type SalesInvoiceGroupByOutputType = {
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
customerId: number | null
|
||||
posAccountId: number
|
||||
_count: SalesInvoiceCountAggregateOutputType | null
|
||||
_avg: SalesInvoiceAvgAggregateOutputType | null
|
||||
_sum: SalesInvoiceSumAggregateOutputType | null
|
||||
@@ -251,9 +240,7 @@ export type SalesInvoiceWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
|
||||
posAccountId?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
posAccount?: Prisma.XOR<Prisma.PosAccountScalarRelationFilter, Prisma.PosAccountWhereInput>
|
||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
}
|
||||
@@ -266,9 +253,7 @@ export type SalesInvoiceOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
posAccount?: Prisma.PosAccountOrderByWithRelationInput
|
||||
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
|
||||
@@ -285,9 +270,7 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
|
||||
posAccountId?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
posAccount?: Prisma.XOR<Prisma.PosAccountScalarRelationFilter, Prisma.PosAccountWhereInput>
|
||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
}, "id" | "code">
|
||||
@@ -300,7 +283,6 @@ export type SalesInvoiceOrderByWithAggregationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
_count?: Prisma.SalesInvoiceCountOrderByAggregateInput
|
||||
_avg?: Prisma.SalesInvoiceAvgOrderByAggregateInput
|
||||
_max?: Prisma.SalesInvoiceMaxOrderByAggregateInput
|
||||
@@ -319,7 +301,6 @@ export type SalesInvoiceScalarWhereWithAggregatesInput = {
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableWithAggregatesFilter<"SalesInvoice"> | number | null
|
||||
posAccountId?: Prisma.IntWithAggregatesFilter<"SalesInvoice"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateInput = {
|
||||
@@ -329,7 +310,6 @@ export type SalesInvoiceCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -342,7 +322,6 @@ export type SalesInvoiceUncheckedCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -354,7 +333,6 @@ export type SalesInvoiceUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -367,7 +345,6 @@ export type SalesInvoiceUncheckedUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -380,7 +357,6 @@ export type SalesInvoiceCreateManyInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyMutationInput = {
|
||||
@@ -399,7 +375,6 @@ export type SalesInvoiceUncheckedUpdateManyInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceListRelationFilter = {
|
||||
@@ -426,14 +401,12 @@ export type SalesInvoiceCountOrderByAggregateInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceAvgOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceMaxOrderByAggregateInput = {
|
||||
@@ -444,7 +417,6 @@ export type SalesInvoiceMaxOrderByAggregateInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceMinOrderByAggregateInput = {
|
||||
@@ -455,14 +427,12 @@ export type SalesInvoiceMinOrderByAggregateInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
posAccountId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarRelationFilter = {
|
||||
@@ -470,48 +440,6 @@ export type SalesInvoiceScalarRelationFilter = {
|
||||
isNot?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutPosAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput> | Prisma.SalesInvoiceCreateWithoutPosAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosAccountInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateNestedManyWithoutPosAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput> | Prisma.SalesInvoiceCreateWithoutPosAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosAccountInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithoutPosAccountNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput> | Prisma.SalesInvoiceCreateWithoutPosAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosAccountInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosAccountInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosAccountInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosAccountInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosAccountInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosAccountInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutPosAccountNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput> | Prisma.SalesInvoiceCreateWithoutPosAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosAccountInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosAccountInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosAccountInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosAccountInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosAccountInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosAccountInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosAccountInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
@@ -582,76 +510,12 @@ export type SalesInvoiceUpdateOneRequiredWithoutSalesInvoicePaymentsNestedInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutPosAccountInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutPosAccountInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customerId?: number | null
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutPosAccountInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyPosAccountInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceCreateManyPosAccountInput | Prisma.SalesInvoiceCreateManyPosAccountInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpsertWithWhereUniqueWithoutPosAccountInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPosAccountInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithWhereUniqueWithoutPosAccountInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPosAccountInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithWhereWithoutPosAccountInput = {
|
||||
where: Prisma.SalesInvoiceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
|
||||
posAccountId?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -663,7 +527,6 @@ export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
posAccountId: number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -694,6 +557,19 @@ export type SalesInvoiceUpdateManyWithWhereWithoutCustomerInput = {
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
id?: Prisma.IntFilter<"SalesInvoice"> | number
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutItemsInput = {
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -701,7 +577,6 @@ export type SalesInvoiceCreateWithoutItemsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -713,7 +588,6 @@ export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -740,7 +614,6 @@ export type SalesInvoiceUpdateWithoutItemsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
@@ -752,7 +625,6 @@ export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
@@ -763,7 +635,6 @@ export type SalesInvoiceCreateWithoutSalesInvoicePaymentsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
|
||||
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -775,7 +646,6 @@ export type SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customerId?: number | null
|
||||
posAccountId: number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -802,7 +672,6 @@ export type SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
@@ -814,53 +683,9 @@ export type SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyPosAccountInput = {
|
||||
id?: number
|
||||
code: string
|
||||
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
customerId?: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutPosAccountInput = {
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutPosAccountInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutPosAccountInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyCustomerInput = {
|
||||
id?: number
|
||||
code: string
|
||||
@@ -868,7 +693,6 @@ export type SalesInvoiceCreateManyCustomerInput = {
|
||||
description?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
posAccountId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
@@ -877,7 +701,6 @@ export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -889,7 +712,6 @@ export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -901,7 +723,6 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
@@ -952,9 +773,7 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
customerId?: boolean
|
||||
posAccountId?: boolean
|
||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||
posAccount?: boolean | Prisma.PosAccountDefaultArgs<ExtArgs>
|
||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||
salesInvoicePayments?: boolean | Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -970,13 +789,11 @@ export type SalesInvoiceSelectScalar = {
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
customerId?: boolean
|
||||
posAccountId?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "customerId" | "posAccountId", ExtArgs["result"]["salesInvoice"]>
|
||||
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "customerId", ExtArgs["result"]["salesInvoice"]>
|
||||
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||
posAccount?: boolean | Prisma.PosAccountDefaultArgs<ExtArgs>
|
||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||
salesInvoicePayments?: boolean | Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -986,7 +803,6 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
name: "SalesInvoice"
|
||||
objects: {
|
||||
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
||||
posAccount: Prisma.$PosAccountPayload<ExtArgs>
|
||||
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
||||
salesInvoicePayments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
|
||||
}
|
||||
@@ -998,7 +814,6 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
customerId: number | null
|
||||
posAccountId: number
|
||||
}, ExtArgs["result"]["salesInvoice"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1340,7 +1155,6 @@ readonly fields: SalesInvoiceFieldRefs;
|
||||
export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
customer<T extends Prisma.SalesInvoice$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
posAccount<T extends Prisma.PosAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__PosAccountClient<runtime.Types.Result.GetResult<Prisma.$PosAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
salesInvoicePayments<T extends Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
@@ -1379,7 +1193,6 @@ export interface SalesInvoiceFieldRefs {
|
||||
readonly createdAt: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||
readonly customerId: Prisma.FieldRef<"SalesInvoice", 'Int'>
|
||||
readonly posAccountId: Prisma.FieldRef<"SalesInvoice", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@ export type SalesInvoiceItemAvgAggregateOutputType = {
|
||||
unitPrice: runtime.Decimal | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
invoiceId: number | null
|
||||
productId: number | null
|
||||
goodId: number | null
|
||||
serviceId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemSumAggregateOutputType = {
|
||||
@@ -41,7 +42,8 @@ export type SalesInvoiceItemSumAggregateOutputType = {
|
||||
unitPrice: runtime.Decimal | null
|
||||
totalAmount: runtime.Decimal | null
|
||||
invoiceId: number | null
|
||||
productId: number | null
|
||||
goodId: number | null
|
||||
serviceId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemMinAggregateOutputType = {
|
||||
@@ -51,7 +53,8 @@ export type SalesInvoiceItemMinAggregateOutputType = {
|
||||
totalAmount: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
invoiceId: number | null
|
||||
productId: number | null
|
||||
goodId: number | null
|
||||
serviceId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemMaxAggregateOutputType = {
|
||||
@@ -61,7 +64,8 @@ export type SalesInvoiceItemMaxAggregateOutputType = {
|
||||
totalAmount: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
invoiceId: number | null
|
||||
productId: number | null
|
||||
goodId: number | null
|
||||
serviceId: number | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCountAggregateOutputType = {
|
||||
@@ -71,7 +75,8 @@ export type SalesInvoiceItemCountAggregateOutputType = {
|
||||
totalAmount: number
|
||||
createdAt: number
|
||||
invoiceId: number
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -82,7 +87,8 @@ export type SalesInvoiceItemAvgAggregateInputType = {
|
||||
unitPrice?: true
|
||||
totalAmount?: true
|
||||
invoiceId?: true
|
||||
productId?: true
|
||||
goodId?: true
|
||||
serviceId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemSumAggregateInputType = {
|
||||
@@ -91,7 +97,8 @@ export type SalesInvoiceItemSumAggregateInputType = {
|
||||
unitPrice?: true
|
||||
totalAmount?: true
|
||||
invoiceId?: true
|
||||
productId?: true
|
||||
goodId?: true
|
||||
serviceId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemMinAggregateInputType = {
|
||||
@@ -101,7 +108,8 @@ export type SalesInvoiceItemMinAggregateInputType = {
|
||||
totalAmount?: true
|
||||
createdAt?: true
|
||||
invoiceId?: true
|
||||
productId?: true
|
||||
goodId?: true
|
||||
serviceId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemMaxAggregateInputType = {
|
||||
@@ -111,7 +119,8 @@ export type SalesInvoiceItemMaxAggregateInputType = {
|
||||
totalAmount?: true
|
||||
createdAt?: true
|
||||
invoiceId?: true
|
||||
productId?: true
|
||||
goodId?: true
|
||||
serviceId?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCountAggregateInputType = {
|
||||
@@ -121,7 +130,8 @@ export type SalesInvoiceItemCountAggregateInputType = {
|
||||
totalAmount?: true
|
||||
createdAt?: true
|
||||
invoiceId?: true
|
||||
productId?: true
|
||||
goodId?: true
|
||||
serviceId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -218,7 +228,8 @@ export type SalesInvoiceItemGroupByOutputType = {
|
||||
totalAmount: runtime.Decimal
|
||||
createdAt: Date
|
||||
invoiceId: number
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
_count: SalesInvoiceItemCountAggregateOutputType | null
|
||||
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
||||
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
||||
@@ -251,9 +262,11 @@ export type SalesInvoiceItemWhereInput = {
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
||||
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemOrderByWithRelationInput = {
|
||||
@@ -263,9 +276,11 @@ export type SalesInvoiceItemOrderByWithRelationInput = {
|
||||
totalAmount?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
good?: Prisma.GoodOrderByWithRelationInput
|
||||
service?: Prisma.ServiceOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -278,9 +293,11 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
||||
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
export type SalesInvoiceItemOrderByWithAggregationInput = {
|
||||
@@ -290,7 +307,8 @@ export type SalesInvoiceItemOrderByWithAggregationInput = {
|
||||
totalAmount?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
|
||||
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
|
||||
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
|
||||
@@ -308,7 +326,8 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
|
||||
totalAmount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
||||
invoiceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
||||
productId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
||||
goodId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
||||
serviceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateInput = {
|
||||
@@ -317,7 +336,8 @@ export type SalesInvoiceItemCreateInput = {
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateInput = {
|
||||
@@ -327,7 +347,8 @@ export type SalesInvoiceItemUncheckedCreateInput = {
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateInput = {
|
||||
@@ -336,7 +357,8 @@ export type SalesInvoiceItemUpdateInput = {
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput
|
||||
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
|
||||
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateInput = {
|
||||
@@ -346,7 +368,8 @@ export type SalesInvoiceItemUncheckedUpdateInput = {
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyInput = {
|
||||
@@ -356,7 +379,8 @@ export type SalesInvoiceItemCreateManyInput = {
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyMutationInput = {
|
||||
@@ -373,7 +397,8 @@ export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemListRelationFilter = {
|
||||
@@ -393,7 +418,8 @@ export type SalesInvoiceItemCountOrderByAggregateInput = {
|
||||
totalAmount?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
||||
@@ -402,7 +428,8 @@ export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
||||
unitPrice?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
||||
@@ -412,7 +439,8 @@ export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
||||
totalAmount?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemMinOrderByAggregateInput = {
|
||||
@@ -422,7 +450,8 @@ export type SalesInvoiceItemMinOrderByAggregateInput = {
|
||||
totalAmount?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemSumOrderByAggregateInput = {
|
||||
@@ -431,48 +460,49 @@ export type SalesInvoiceItemSumOrderByAggregateInput = {
|
||||
unitPrice?: Prisma.SortOrder
|
||||
totalAmount?: Prisma.SortOrder
|
||||
invoiceId?: Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
goodId?: Prisma.SortOrder
|
||||
serviceId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
export type SalesInvoiceItemCreateNestedManyWithoutGoodInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
export type SalesInvoiceItemUpdateManyWithoutGoodNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyProductInputEnvelope
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutProductInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
@@ -518,47 +548,91 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutProductInput = {
|
||||
export type SalesInvoiceItemCreateNestedManyWithoutServiceInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutServiceInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithoutServiceNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
||||
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput[]
|
||||
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
||||
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput[]
|
||||
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutGoodInput = {
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateWithoutProductInput = {
|
||||
export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
serviceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutProductInput = {
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyProductInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceItemCreateManyProductInput | Prisma.SalesInvoiceItemCreateManyProductInput[]
|
||||
export type SalesInvoiceItemCreateManyGoodInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceItemCreateManyGoodInput | Prisma.SalesInvoiceItemCreateManyGoodInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutProductInput = {
|
||||
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutProductInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput>
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutGoodInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutProductInput = {
|
||||
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutProductInput>
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutGoodInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithWhereWithoutProductInput = {
|
||||
export type SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput = {
|
||||
where: Prisma.SalesInvoiceItemScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductInput>
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemScalarWhereInput = {
|
||||
@@ -571,7 +645,8 @@ export type SalesInvoiceItemScalarWhereInput = {
|
||||
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
||||
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
||||
@@ -579,7 +654,8 @@ export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
||||
@@ -588,7 +664,8 @@ export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
|
||||
@@ -617,39 +694,88 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyProductInput = {
|
||||
export type SalesInvoiceItemCreateWithoutServiceInput = {
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
||||
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
goodId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutProductInput = {
|
||||
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyServiceInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceItemCreateManyServiceInput | Prisma.SalesInvoiceItemCreateManyServiceInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutServiceInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput = {
|
||||
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutServiceInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput = {
|
||||
where: Prisma.SalesInvoiceItemScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyGoodInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
serviceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateWithoutProductInput = {
|
||||
export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductInput = {
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
||||
@@ -658,7 +784,8 @@ export type SalesInvoiceItemCreateManyInvoiceInput = {
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
||||
@@ -666,7 +793,8 @@ export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput
|
||||
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
|
||||
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
||||
@@ -675,7 +803,8 @@ export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
||||
@@ -684,7 +813,47 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemCreateManyServiceInput = {
|
||||
id?: number
|
||||
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Date | string
|
||||
invoiceId: number
|
||||
goodId: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
||||
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
|
||||
|
||||
@@ -696,9 +865,11 @@ export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
totalAmount?: boolean
|
||||
createdAt?: boolean
|
||||
invoiceId?: boolean
|
||||
productId?: boolean
|
||||
goodId?: boolean
|
||||
serviceId?: boolean
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["salesInvoiceItem"]>
|
||||
|
||||
|
||||
@@ -710,20 +881,23 @@ export type SalesInvoiceItemSelectScalar = {
|
||||
totalAmount?: boolean
|
||||
createdAt?: boolean
|
||||
invoiceId?: boolean
|
||||
productId?: boolean
|
||||
goodId?: boolean
|
||||
serviceId?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unitPrice" | "totalAmount" | "createdAt" | "invoiceId" | "productId", ExtArgs["result"]["salesInvoiceItem"]>
|
||||
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unitPrice" | "totalAmount" | "createdAt" | "invoiceId" | "goodId" | "serviceId", ExtArgs["result"]["salesInvoiceItem"]>
|
||||
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
||||
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "SalesInvoiceItem"
|
||||
objects: {
|
||||
invoice: Prisma.$SalesInvoicePayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
good: Prisma.$GoodPayload<ExtArgs> | null
|
||||
service: Prisma.$ServicePayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -732,7 +906,8 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
|
||||
totalAmount: runtime.Decimal
|
||||
createdAt: Date
|
||||
invoiceId: number
|
||||
productId: number
|
||||
goodId: number
|
||||
serviceId: number
|
||||
}, ExtArgs["result"]["salesInvoiceItem"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1074,7 +1249,8 @@ readonly fields: SalesInvoiceItemFieldRefs;
|
||||
export interface Prisma__SalesInvoiceItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
invoice<T extends Prisma.SalesInvoiceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceDefaultArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
good<T extends Prisma.SalesInvoiceItem$goodArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceItem$goodArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
service<T extends Prisma.SalesInvoiceItem$serviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>>): Prisma.Prisma__ServiceClient<runtime.Types.Result.GetResult<Prisma.$ServicePayload<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.
|
||||
@@ -1110,7 +1286,8 @@ export interface SalesInvoiceItemFieldRefs {
|
||||
readonly totalAmount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
||||
readonly createdAt: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
||||
readonly invoiceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
||||
readonly productId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
||||
readonly goodId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
||||
readonly serviceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
@@ -1453,6 +1630,44 @@ export type SalesInvoiceItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensi
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* SalesInvoiceItem.good
|
||||
*/
|
||||
export type SalesInvoiceItem$goodArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Good
|
||||
*/
|
||||
select?: Prisma.GoodSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Good
|
||||
*/
|
||||
omit?: Prisma.GoodOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.GoodInclude<ExtArgs> | null
|
||||
where?: Prisma.GoodWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SalesInvoiceItem.service
|
||||
*/
|
||||
export type SalesInvoiceItem$serviceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Service
|
||||
*/
|
||||
select?: Prisma.ServiceSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Service
|
||||
*/
|
||||
omit?: Prisma.ServiceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ServiceInclude<ExtArgs> | null
|
||||
where?: Prisma.ServiceWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SalesInvoiceItem without action
|
||||
*/
|
||||
|
||||
@@ -434,6 +434,10 @@ export type SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput = {
|
||||
deleteMany?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type EnumPaymentMethodTypeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PaymentMethodType
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateWithoutInvoiceInput = {
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
paymentMethod: $Enums.PaymentMethodType
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,719 +0,0 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `StockAvailableView` model and its related types.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
import type * as runtime from "@prisma/client/runtime/client"
|
||||
import type * as $Enums from "../enums.js"
|
||||
import type * as Prisma from "../internal/prismaNamespace.js"
|
||||
|
||||
/**
|
||||
* Model StockAvailableView
|
||||
*
|
||||
*/
|
||||
export type StockAvailableViewModel = runtime.Types.Result.DefaultSelection<Prisma.$StockAvailableViewPayload>
|
||||
|
||||
export type AggregateStockAvailableView = {
|
||||
_count: StockAvailableViewCountAggregateOutputType | null
|
||||
_avg: StockAvailableViewAvgAggregateOutputType | null
|
||||
_sum: StockAvailableViewSumAggregateOutputType | null
|
||||
_min: StockAvailableViewMinAggregateOutputType | null
|
||||
_max: StockAvailableViewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
physicalQuantity: runtime.Decimal | null
|
||||
reservedQuantity: runtime.Decimal | null
|
||||
availableQuantity: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type StockAvailableViewCountAggregateOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
physicalQuantity: number
|
||||
reservedQuantity: number
|
||||
availableQuantity: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type StockAvailableViewAvgAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewSumAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewMinAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewMaxAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewCountAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
physicalQuantity?: true
|
||||
reservedQuantity?: true
|
||||
availableQuantity?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type StockAvailableViewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which StockAvailableView to aggregate.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned StockAvailableViews
|
||||
**/
|
||||
_count?: true | StockAvailableViewCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: StockAvailableViewAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: StockAvailableViewSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: StockAvailableViewMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: StockAvailableViewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetStockAvailableViewAggregateType<T extends StockAvailableViewAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateStockAvailableView]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateStockAvailableView[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateStockAvailableView[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithAggregationInput | Prisma.StockAvailableViewOrderByWithAggregationInput[]
|
||||
by: Prisma.StockAvailableViewScalarFieldEnum[] | Prisma.StockAvailableViewScalarFieldEnum
|
||||
having?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: StockAvailableViewCountAggregateInputType | true
|
||||
_avg?: StockAvailableViewAvgAggregateInputType
|
||||
_sum?: StockAvailableViewSumAggregateInputType
|
||||
_min?: StockAvailableViewMinAggregateInputType
|
||||
_max?: StockAvailableViewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type StockAvailableViewGroupByOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
physicalQuantity: runtime.Decimal
|
||||
reservedQuantity: runtime.Decimal
|
||||
availableQuantity: runtime.Decimal
|
||||
_count: StockAvailableViewCountAggregateOutputType | null
|
||||
_avg: StockAvailableViewAvgAggregateOutputType | null
|
||||
_sum: StockAvailableViewSumAggregateOutputType | null
|
||||
_min: StockAvailableViewMinAggregateOutputType | null
|
||||
_max: StockAvailableViewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetStockAvailableViewGroupByPayload<T extends StockAvailableViewGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<StockAvailableViewGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof StockAvailableViewGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], StockAvailableViewGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], StockAvailableViewGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewWhereInput = {
|
||||
AND?: Prisma.StockAvailableViewWhereInput | Prisma.StockAvailableViewWhereInput[]
|
||||
OR?: Prisma.StockAvailableViewWhereInput[]
|
||||
NOT?: Prisma.StockAvailableViewWhereInput | Prisma.StockAvailableViewWhereInput[]
|
||||
productId?: Prisma.IntFilter<"StockAvailableView"> | number
|
||||
inventoryId?: Prisma.IntFilter<"StockAvailableView"> | number
|
||||
physicalQuantity?: Prisma.DecimalFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
reservedQuantity?: Prisma.DecimalFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
availableQuantity?: Prisma.DecimalFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockAvailableViewOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
_count?: Prisma.StockAvailableViewCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockAvailableViewAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockAvailableViewMaxOrderByAggregateInput
|
||||
_min?: Prisma.StockAvailableViewMinOrderByAggregateInput
|
||||
_sum?: Prisma.StockAvailableViewSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type StockAvailableViewScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput | Prisma.StockAvailableViewScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.StockAvailableViewScalarWhereWithAggregatesInput | Prisma.StockAvailableViewScalarWhereWithAggregatesInput[]
|
||||
productId?: Prisma.IntWithAggregatesFilter<"StockAvailableView"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"StockAvailableView"> | number
|
||||
physicalQuantity?: Prisma.DecimalWithAggregatesFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
reservedQuantity?: Prisma.DecimalWithAggregatesFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
availableQuantity?: Prisma.DecimalWithAggregatesFilter<"StockAvailableView"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
}
|
||||
|
||||
export type StockAvailableViewCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockAvailableViewSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
physicalQuantity?: Prisma.SortOrder
|
||||
reservedQuantity?: Prisma.SortOrder
|
||||
availableQuantity?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
physicalQuantity?: boolean
|
||||
reservedQuantity?: boolean
|
||||
availableQuantity?: boolean
|
||||
}, ExtArgs["result"]["stockAvailableView"]>
|
||||
|
||||
|
||||
|
||||
export type StockAvailableViewSelectScalar = {
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
physicalQuantity?: boolean
|
||||
reservedQuantity?: boolean
|
||||
availableQuantity?: boolean
|
||||
}
|
||||
|
||||
export type StockAvailableViewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "inventoryId" | "physicalQuantity" | "reservedQuantity" | "availableQuantity", ExtArgs["result"]["stockAvailableView"]>
|
||||
|
||||
export type $StockAvailableViewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "StockAvailableView"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
productId: number
|
||||
inventoryId: number
|
||||
physicalQuantity: runtime.Decimal
|
||||
reservedQuantity: runtime.Decimal
|
||||
availableQuantity: runtime.Decimal
|
||||
}, ExtArgs["result"]["stockAvailableView"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type StockAvailableViewGetPayload<S extends boolean | null | undefined | StockAvailableViewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload, S>
|
||||
|
||||
export type StockAvailableViewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<StockAvailableViewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: StockAvailableViewCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface StockAvailableViewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StockAvailableView'], meta: { name: 'StockAvailableView' } }
|
||||
/**
|
||||
* Find the first StockAvailableView that matches the filter.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewFindFirstArgs} args - Arguments to find a StockAvailableView
|
||||
* @example
|
||||
* // Get one StockAvailableView
|
||||
* const stockAvailableView = await prisma.stockAvailableView.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends StockAvailableViewFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, StockAvailableViewFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__StockAvailableViewClient<runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first StockAvailableView that matches the filter or
|
||||
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewFindFirstOrThrowArgs} args - Arguments to find a StockAvailableView
|
||||
* @example
|
||||
* // Get one StockAvailableView
|
||||
* const stockAvailableView = await prisma.stockAvailableView.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends StockAvailableViewFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, StockAvailableViewFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__StockAvailableViewClient<runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more StockAvailableViews that matches the filter.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all StockAvailableViews
|
||||
* const stockAvailableViews = await prisma.stockAvailableView.findMany()
|
||||
*
|
||||
* // Get first 10 StockAvailableViews
|
||||
* const stockAvailableViews = await prisma.stockAvailableView.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `productId`
|
||||
* const stockAvailableViewWithProductIdOnly = await prisma.stockAvailableView.findMany({ select: { productId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends StockAvailableViewFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, StockAvailableViewFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockAvailableViewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of StockAvailableViews.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewCountArgs} args - Arguments to filter StockAvailableViews to count.
|
||||
* @example
|
||||
* // Count the number of StockAvailableViews
|
||||
* const count = await prisma.stockAvailableView.count({
|
||||
* where: {
|
||||
* // ... the filter for the StockAvailableViews we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends StockAvailableViewCountArgs>(
|
||||
args?: Prisma.Subset<T, StockAvailableViewCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], StockAvailableViewCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a StockAvailableView.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
||||
* @example
|
||||
* // Ordered by age ascending
|
||||
* // Where email contains prisma.io
|
||||
* // Limited to the 10 users
|
||||
* const aggregations = await prisma.user.aggregate({
|
||||
* _avg: {
|
||||
* age: true,
|
||||
* },
|
||||
* where: {
|
||||
* email: {
|
||||
* contains: "prisma.io",
|
||||
* },
|
||||
* },
|
||||
* orderBy: {
|
||||
* age: "asc",
|
||||
* },
|
||||
* take: 10,
|
||||
* })
|
||||
**/
|
||||
aggregate<T extends StockAvailableViewAggregateArgs>(args: Prisma.Subset<T, StockAvailableViewAggregateArgs>): Prisma.PrismaPromise<GetStockAvailableViewAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by StockAvailableView.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {StockAvailableViewGroupByArgs} args - Group by arguments.
|
||||
* @example
|
||||
* // Group by city, order by createdAt, get count
|
||||
* const result = await prisma.user.groupBy({
|
||||
* by: ['city', 'createdAt'],
|
||||
* orderBy: {
|
||||
* createdAt: true
|
||||
* },
|
||||
* _count: {
|
||||
* _all: true
|
||||
* },
|
||||
* })
|
||||
*
|
||||
**/
|
||||
groupBy<
|
||||
T extends StockAvailableViewGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: StockAvailableViewGroupByArgs['orderBy'] }
|
||||
: { orderBy?: StockAvailableViewGroupByArgs['orderBy'] },
|
||||
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
||||
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
||||
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
||||
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
||||
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
||||
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
||||
InputErrors extends ByEmpty extends Prisma.True
|
||||
? `Error: "by" must not be empty.`
|
||||
: HavingValid extends Prisma.False
|
||||
? {
|
||||
[P in HavingFields]: P extends ByFields
|
||||
? never
|
||||
: P extends string
|
||||
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
||||
: [
|
||||
Error,
|
||||
'Field ',
|
||||
P,
|
||||
` in "having" needs to be provided in "by"`,
|
||||
]
|
||||
}[HavingFields]
|
||||
: 'take' extends Prisma.Keys<T>
|
||||
? 'orderBy' extends Prisma.Keys<T>
|
||||
? ByValid extends Prisma.True
|
||||
? {}
|
||||
: {
|
||||
[P in OrderFields]: P extends ByFields
|
||||
? never
|
||||
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||||
}[OrderFields]
|
||||
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
||||
: 'skip' extends Prisma.Keys<T>
|
||||
? 'orderBy' extends Prisma.Keys<T>
|
||||
? ByValid extends Prisma.True
|
||||
? {}
|
||||
: {
|
||||
[P in OrderFields]: P extends ByFields
|
||||
? never
|
||||
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||||
}[OrderFields]
|
||||
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
||||
: ByValid extends Prisma.True
|
||||
? {}
|
||||
: {
|
||||
[P in OrderFields]: P extends ByFields
|
||||
? never
|
||||
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||||
}[OrderFields]
|
||||
>(args: Prisma.SubsetIntersection<T, StockAvailableViewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStockAvailableViewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the StockAvailableView model
|
||||
*/
|
||||
readonly fields: StockAvailableViewFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for StockAvailableView.
|
||||
* Why is this prefixed with `Prisma__`?
|
||||
* Because we want to prevent naming conflicts as mentioned in
|
||||
* https://github.com/prisma/prisma-client-js/issues/707
|
||||
*/
|
||||
export interface Prisma__StockAvailableViewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of which ever callback is executed.
|
||||
*/
|
||||
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
||||
/**
|
||||
* Attaches a callback for only the rejection of the Promise.
|
||||
* @param onrejected The callback to execute when the Promise is rejected.
|
||||
* @returns A Promise for the completion of the callback.
|
||||
*/
|
||||
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
||||
/**
|
||||
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
||||
* resolved value cannot be modified from the callback.
|
||||
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
||||
* @returns A Promise for the completion of the callback.
|
||||
*/
|
||||
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Fields of the StockAvailableView model
|
||||
*/
|
||||
export interface StockAvailableViewFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"StockAvailableView", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"StockAvailableView", 'Int'>
|
||||
readonly physicalQuantity: Prisma.FieldRef<"StockAvailableView", 'Decimal'>
|
||||
readonly reservedQuantity: Prisma.FieldRef<"StockAvailableView", 'Decimal'>
|
||||
readonly availableQuantity: Prisma.FieldRef<"StockAvailableView", 'Decimal'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* StockAvailableView findFirst
|
||||
*/
|
||||
export type StockAvailableViewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockAvailableView to fetch.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of StockAvailableViews.
|
||||
*/
|
||||
distinct?: Prisma.StockAvailableViewScalarFieldEnum | Prisma.StockAvailableViewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* StockAvailableView findFirstOrThrow
|
||||
*/
|
||||
export type StockAvailableViewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockAvailableView to fetch.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of StockAvailableViews.
|
||||
*/
|
||||
distinct?: Prisma.StockAvailableViewScalarFieldEnum | Prisma.StockAvailableViewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* StockAvailableView findMany
|
||||
*/
|
||||
export type StockAvailableViewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which StockAvailableViews to fetch.
|
||||
*/
|
||||
where?: Prisma.StockAvailableViewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of StockAvailableViews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.StockAvailableViewOrderByWithRelationInput | Prisma.StockAvailableViewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` StockAvailableViews from the position of the cursor.
|
||||
*/
|
||||
take?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Skip the first `n` StockAvailableViews.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.StockAvailableViewScalarFieldEnum | Prisma.StockAvailableViewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* StockAvailableView without action
|
||||
*/
|
||||
export type StockAvailableViewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockAvailableView
|
||||
*/
|
||||
select?: Prisma.StockAvailableViewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockAvailableView
|
||||
*/
|
||||
omit?: Prisma.StockAvailableViewOmit<ExtArgs> | null
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user