feat: implement purchase receipt items management with create, update, find, and delete functionalities
feat: add purchase receipts management with create, update, find, and delete functionalities feat: implement sales invoice items management with create, update, find, and delete functionalities feat: add sales invoices management with create, update, find, and delete functionalities feat: implement stock adjustments management with create, update, find, and delete functionalities feat: add stock balance retrieval functionality feat: implement stock movements management with create, update, find, and delete functionalities
This commit is contained in:
@@ -238,8 +238,8 @@ export type CustomerGroupByOutputType = {
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
_count: CustomerCountAggregateOutputType | null
|
||||
_avg: CustomerAvgAggregateOutputType | null
|
||||
@@ -277,9 +277,11 @@ export type CustomerWhereInput = {
|
||||
state?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
country?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Customer"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}
|
||||
|
||||
export type CustomerOrderByWithRelationInput = {
|
||||
@@ -293,9 +295,11 @@ export type CustomerOrderByWithRelationInput = {
|
||||
state?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
orders?: Prisma.OrderOrderByRelationAggregateInput
|
||||
salesInvoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -313,9 +317,11 @@ export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
||||
state?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
country?: Prisma.StringNullableFilter<"Customer"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Customer"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type CustomerOrderByWithAggregationInput = {
|
||||
@@ -329,8 +335,8 @@ export type CustomerOrderByWithAggregationInput = {
|
||||
state?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.CustomerCountOrderByAggregateInput
|
||||
_avg?: Prisma.CustomerAvgOrderByAggregateInput
|
||||
@@ -353,8 +359,8 @@ export type CustomerScalarWhereWithAggregatesInput = {
|
||||
state?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
country?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
||||
isActive?: Prisma.BoolWithAggregatesFilter<"Customer"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
||||
}
|
||||
|
||||
@@ -368,9 +374,11 @@ export type CustomerCreateInput = {
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateInput = {
|
||||
@@ -384,9 +392,11 @@ export type CustomerUncheckedCreateInput = {
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateInput = {
|
||||
@@ -399,9 +409,11 @@ export type CustomerUpdateInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateInput = {
|
||||
@@ -415,9 +427,11 @@ export type CustomerUncheckedUpdateInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateManyInput = {
|
||||
@@ -431,8 +445,8 @@ export type CustomerCreateManyInput = {
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
@@ -446,8 +460,8 @@ export type CustomerUpdateManyMutationInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -462,8 +476,8 @@ export type CustomerUncheckedUpdateManyInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -529,6 +543,248 @@ export type CustomerSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CustomerScalarRelationFilter = {
|
||||
is?: Prisma.CustomerWhereInput
|
||||
isNot?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerNullableScalarRelationFilter = {
|
||||
is?: Prisma.CustomerWhereInput | null
|
||||
isNot?: Prisma.CustomerWhereInput | null
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutOrdersInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneRequiredWithoutOrdersNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutOrdersInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutOrdersInput, Prisma.CustomerUpdateWithoutOrdersInput>, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutSalesInvoicesInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSalesInvoicesInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneWithoutSalesInvoicesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSalesInvoicesInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutSalesInvoicesInput
|
||||
disconnect?: Prisma.CustomerWhereInput | boolean
|
||||
delete?: Prisma.CustomerWhereInput | boolean
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSalesInvoicesInput, Prisma.CustomerUpdateWithoutSalesInvoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
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
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutSalesInvoicesInput = {
|
||||
where: Prisma.CustomerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
|
||||
}
|
||||
|
||||
export type CustomerUpsertWithoutSalesInvoicesInput = {
|
||||
update: Prisma.XOR<Prisma.CustomerUpdateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateToOneWithWhereWithoutSalesInvoicesInput = {
|
||||
where?: Prisma.CustomerWhereInput
|
||||
data: Prisma.XOR<Prisma.CustomerUpdateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
|
||||
}
|
||||
|
||||
export type CustomerUpdateWithoutSalesInvoicesInput = {
|
||||
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
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type CustomerCountOutputType
|
||||
*/
|
||||
|
||||
export type CustomerCountOutputType = {
|
||||
orders: number
|
||||
salesInvoices: number
|
||||
}
|
||||
|
||||
export type CustomerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orders?: boolean | CustomerCountOutputTypeCountOrdersArgs
|
||||
salesInvoices?: boolean | CustomerCountOutputTypeCountSalesInvoicesArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* CustomerCountOutputType without action
|
||||
*/
|
||||
export type CustomerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the CustomerCountOutputType
|
||||
*/
|
||||
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 CustomerCountOutputTypeCountSalesInvoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
@@ -545,6 +801,9 @@ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["customer"]>
|
||||
|
||||
|
||||
@@ -566,10 +825,18 @@ export type CustomerSelectScalar = {
|
||||
}
|
||||
|
||||
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 CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Customer"
|
||||
objects: {}
|
||||
objects: {
|
||||
orders: Prisma.$OrderPayload<ExtArgs>[]
|
||||
salesInvoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
firstName: string
|
||||
@@ -581,8 +848,8 @@ export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
}, ExtArgs["result"]["customer"]>
|
||||
composites: {}
|
||||
@@ -924,6 +1191,8 @@ readonly fields: CustomerFieldRefs;
|
||||
*/
|
||||
export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
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>
|
||||
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.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -982,6 +1251,10 @@ export type CustomerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Customer to fetch.
|
||||
*/
|
||||
@@ -1000,6 +1273,10 @@ export type CustomerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensio
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Customer to fetch.
|
||||
*/
|
||||
@@ -1018,6 +1295,10 @@ export type CustomerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Customer to fetch.
|
||||
*/
|
||||
@@ -1066,6 +1347,10 @@ export type CustomerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extension
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Customer to fetch.
|
||||
*/
|
||||
@@ -1114,6 +1399,10 @@ export type CustomerFindManyArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Customers to fetch.
|
||||
*/
|
||||
@@ -1157,6 +1446,10 @@ export type CustomerCreateArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to create a Customer.
|
||||
*/
|
||||
@@ -1186,6 +1479,10 @@ export type CustomerUpdateArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to update a Customer.
|
||||
*/
|
||||
@@ -1226,6 +1523,10 @@ export type CustomerUpsertArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* The filter to search for the Customer to update in case it exists.
|
||||
*/
|
||||
@@ -1252,6 +1553,10 @@ export type CustomerDeleteArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter which Customer to delete.
|
||||
*/
|
||||
@@ -1272,6 +1577,54 @@ 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.salesInvoices
|
||||
*/
|
||||
export type Customer$salesInvoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the SalesInvoice
|
||||
*/
|
||||
select?: Prisma.SalesInvoiceSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the SalesInvoice
|
||||
*/
|
||||
omit?: Prisma.SalesInvoiceOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SalesInvoiceInclude<ExtArgs> | null
|
||||
where?: Prisma.SalesInvoiceWhereInput
|
||||
orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[]
|
||||
cursor?: Prisma.SalesInvoiceWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer without action
|
||||
*/
|
||||
@@ -1284,4 +1637,8 @@ export type CustomerDefaultArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<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
@@ -278,8 +278,8 @@ export type ProductVariantGroupByOutputType = {
|
||||
alertQuantity: runtime.Decimal | null
|
||||
isActive: boolean
|
||||
isFeatured: boolean
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
productId: number
|
||||
_count: ProductVariantCountAggregateOutputType | null
|
||||
@@ -320,8 +320,8 @@ export type ProductVariantWhereInput = {
|
||||
alertQuantity?: Prisma.DecimalNullableFilter<"ProductVariant"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFilter<"ProductVariant"> | boolean
|
||||
isFeatured?: Prisma.BoolFilter<"ProductVariant"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductVariant"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductVariant"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
productId?: Prisma.IntFilter<"ProductVariant"> | number
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
@@ -340,8 +340,8 @@ export type ProductVariantOrderByWithRelationInput = {
|
||||
alertQuantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isFeatured?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
@@ -364,8 +364,8 @@ export type ProductVariantWhereUniqueInput = Prisma.AtLeast<{
|
||||
alertQuantity?: Prisma.DecimalNullableFilter<"ProductVariant"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFilter<"ProductVariant"> | boolean
|
||||
isFeatured?: Prisma.BoolFilter<"ProductVariant"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductVariant"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductVariant"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
productId?: Prisma.IntFilter<"ProductVariant"> | number
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
@@ -384,8 +384,8 @@ export type ProductVariantOrderByWithAggregationInput = {
|
||||
alertQuantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
isFeatured?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productId?: Prisma.SortOrder
|
||||
_count?: Prisma.ProductVariantCountOrderByAggregateInput
|
||||
@@ -411,8 +411,8 @@ export type ProductVariantScalarWhereWithAggregatesInput = {
|
||||
alertQuantity?: Prisma.DecimalNullableWithAggregatesFilter<"ProductVariant"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolWithAggregatesFilter<"ProductVariant"> | boolean
|
||||
isFeatured?: Prisma.BoolWithAggregatesFilter<"ProductVariant"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductVariant"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductVariant"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProductVariant"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProductVariant"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductVariant"> | Date | string | null
|
||||
productId?: Prisma.IntWithAggregatesFilter<"ProductVariant"> | number
|
||||
}
|
||||
@@ -429,8 +429,8 @@ export type ProductVariantCreateInput = {
|
||||
alertQuantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: boolean
|
||||
isFeatured?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
product: Prisma.ProductCreateNestedOneWithoutVariantsInput
|
||||
}
|
||||
@@ -448,8 +448,8 @@ export type ProductVariantUncheckedCreateInput = {
|
||||
alertQuantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: boolean
|
||||
isFeatured?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productId: number
|
||||
}
|
||||
@@ -466,8 +466,8 @@ export type ProductVariantUpdateInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutVariantsNestedInput
|
||||
}
|
||||
@@ -485,8 +485,8 @@ export type ProductVariantUncheckedUpdateInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
@@ -504,8 +504,8 @@ export type ProductVariantCreateManyInput = {
|
||||
alertQuantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: boolean
|
||||
isFeatured?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productId: number
|
||||
}
|
||||
@@ -522,8 +522,8 @@ export type ProductVariantUpdateManyMutationInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -540,8 +540,8 @@ export type ProductVariantUncheckedUpdateManyInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
}
|
||||
@@ -711,8 +711,8 @@ export type ProductVariantCreateWithoutProductInput = {
|
||||
alertQuantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: boolean
|
||||
isFeatured?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
@@ -729,8 +729,8 @@ export type ProductVariantUncheckedCreateWithoutProductInput = {
|
||||
alertQuantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: boolean
|
||||
isFeatured?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
@@ -776,8 +776,8 @@ export type ProductVariantScalarWhereInput = {
|
||||
alertQuantity?: Prisma.DecimalNullableFilter<"ProductVariant"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFilter<"ProductVariant"> | boolean
|
||||
isFeatured?: Prisma.BoolFilter<"ProductVariant"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductVariant"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductVariant"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductVariant"> | Date | string | null
|
||||
productId?: Prisma.IntFilter<"ProductVariant"> | number
|
||||
}
|
||||
@@ -795,8 +795,8 @@ export type ProductVariantCreateManyProductInput = {
|
||||
alertQuantity?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: boolean
|
||||
isFeatured?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
@@ -812,8 +812,8 @@ export type ProductVariantUpdateWithoutProductInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -830,8 +830,8 @@ export type ProductVariantUncheckedUpdateWithoutProductInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -848,8 +848,8 @@ export type ProductVariantUncheckedUpdateManyWithoutProductInput = {
|
||||
alertQuantity?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isFeatured?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -919,8 +919,8 @@ export type $ProductVariantPayload<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
alertQuantity: runtime.Decimal | null
|
||||
isActive: boolean
|
||||
isFeatured: boolean
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
productId: number
|
||||
}, ExtArgs["result"]["productVariant"]>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -421,14 +421,6 @@ export type NullableStringFieldUpdateOperationsInput = {
|
||||
set?: string | null
|
||||
}
|
||||
|
||||
export type DateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string
|
||||
}
|
||||
|
||||
export type NullableDateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string | null
|
||||
}
|
||||
|
||||
export type RoleCreateWithoutUsersInput = {
|
||||
name: string
|
||||
description?: string | 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
@@ -41,6 +41,7 @@ export type StoreMinAggregateOutputType = {
|
||||
isActive: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
}
|
||||
|
||||
export type StoreMaxAggregateOutputType = {
|
||||
@@ -50,6 +51,7 @@ export type StoreMaxAggregateOutputType = {
|
||||
isActive: boolean | null
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
deletedAt: Date | null
|
||||
}
|
||||
|
||||
export type StoreCountAggregateOutputType = {
|
||||
@@ -59,6 +61,7 @@ export type StoreCountAggregateOutputType = {
|
||||
isActive: number
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
deletedAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -78,6 +81,7 @@ export type StoreMinAggregateInputType = {
|
||||
isActive?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
}
|
||||
|
||||
export type StoreMaxAggregateInputType = {
|
||||
@@ -87,6 +91,7 @@ export type StoreMaxAggregateInputType = {
|
||||
isActive?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
}
|
||||
|
||||
export type StoreCountAggregateInputType = {
|
||||
@@ -96,6 +101,7 @@ export type StoreCountAggregateInputType = {
|
||||
isActive?: true
|
||||
createdAt?: true
|
||||
updatedAt?: true
|
||||
deletedAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -192,6 +198,7 @@ export type StoreGroupByOutputType = {
|
||||
isActive: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
_count: StoreCountAggregateOutputType | null
|
||||
_avg: StoreAvgAggregateOutputType | null
|
||||
_sum: StoreSumAggregateOutputType | null
|
||||
@@ -224,6 +231,7 @@ export type StoreWhereInput = {
|
||||
isActive?: Prisma.BoolFilter<"Store"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Store"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Store"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Store"> | Date | string | null
|
||||
}
|
||||
|
||||
export type StoreOrderByWithRelationInput = {
|
||||
@@ -233,6 +241,7 @@ export type StoreOrderByWithRelationInput = {
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_relevance?: Prisma.StoreOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -246,6 +255,7 @@ export type StoreWhereUniqueInput = Prisma.AtLeast<{
|
||||
isActive?: Prisma.BoolFilter<"Store"> | boolean
|
||||
createdAt?: Prisma.DateTimeFilter<"Store"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Store"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Store"> | Date | string | null
|
||||
}, "id">
|
||||
|
||||
export type StoreOrderByWithAggregationInput = {
|
||||
@@ -255,6 +265,7 @@ export type StoreOrderByWithAggregationInput = {
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.StoreCountOrderByAggregateInput
|
||||
_avg?: Prisma.StoreAvgOrderByAggregateInput
|
||||
_max?: Prisma.StoreMaxOrderByAggregateInput
|
||||
@@ -272,14 +283,16 @@ export type StoreScalarWhereWithAggregatesInput = {
|
||||
isActive?: Prisma.BoolWithAggregatesFilter<"Store"> | boolean
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Store"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Store"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Store"> | Date | string | null
|
||||
}
|
||||
|
||||
export type StoreCreateInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
createdAt: Date | string
|
||||
updatedAt: Date | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type StoreUncheckedCreateInput = {
|
||||
@@ -287,8 +300,9 @@ export type StoreUncheckedCreateInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
createdAt: Date | string
|
||||
updatedAt: Date | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type StoreUpdateInput = {
|
||||
@@ -297,6 +311,7 @@ export type StoreUpdateInput = {
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type StoreUncheckedUpdateInput = {
|
||||
@@ -306,6 +321,7 @@ export type StoreUncheckedUpdateInput = {
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type StoreCreateManyInput = {
|
||||
@@ -313,8 +329,9 @@ export type StoreCreateManyInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
createdAt: Date | string
|
||||
updatedAt: Date | string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type StoreUpdateManyMutationInput = {
|
||||
@@ -323,6 +340,7 @@ export type StoreUpdateManyMutationInput = {
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type StoreUncheckedUpdateManyInput = {
|
||||
@@ -332,6 +350,7 @@ export type StoreUncheckedUpdateManyInput = {
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type StoreOrderByRelevanceInput = {
|
||||
@@ -347,6 +366,7 @@ export type StoreCountOrderByAggregateInput = {
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StoreAvgOrderByAggregateInput = {
|
||||
@@ -360,6 +380,7 @@ export type StoreMaxOrderByAggregateInput = {
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StoreMinOrderByAggregateInput = {
|
||||
@@ -369,6 +390,7 @@ export type StoreMinOrderByAggregateInput = {
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StoreSumOrderByAggregateInput = {
|
||||
@@ -384,6 +406,7 @@ export type StoreSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
isActive?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
}, ExtArgs["result"]["store"]>
|
||||
|
||||
|
||||
@@ -395,9 +418,10 @@ export type StoreSelectScalar = {
|
||||
isActive?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
}
|
||||
|
||||
export type StoreOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["store"]>
|
||||
export type StoreOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["store"]>
|
||||
|
||||
export type $StorePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Store"
|
||||
@@ -409,6 +433,7 @@ export type $StorePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
isActive: boolean
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
}, ExtArgs["result"]["store"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -784,6 +809,7 @@ export interface StoreFieldRefs {
|
||||
readonly isActive: Prisma.FieldRef<"Store", 'Boolean'>
|
||||
readonly createdAt: Prisma.FieldRef<"Store", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"Store", 'DateTime'>
|
||||
readonly deletedAt: Prisma.FieldRef<"Store", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -238,8 +238,8 @@ export type SupplierGroupByOutputType = {
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
_count: SupplierCountAggregateOutputType | null
|
||||
_avg: SupplierAvgAggregateOutputType | null
|
||||
@@ -277,9 +277,11 @@ export type SupplierWhereInput = {
|
||||
state?: Prisma.StringNullableFilter<"Supplier"> | string | null
|
||||
country?: Prisma.StringNullableFilter<"Supplier"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Supplier"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeListRelationFilter
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
}
|
||||
|
||||
export type SupplierOrderByWithRelationInput = {
|
||||
@@ -293,9 +295,11 @@ export type SupplierOrderByWithRelationInput = {
|
||||
state?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productCharges?: Prisma.ProductChargeOrderByRelationAggregateInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SupplierOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -313,9 +317,11 @@ export type SupplierWhereUniqueInput = Prisma.AtLeast<{
|
||||
state?: Prisma.StringNullableFilter<"Supplier"> | string | null
|
||||
country?: Prisma.StringNullableFilter<"Supplier"> | string | null
|
||||
isActive?: Prisma.BoolFilter<"Supplier"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Supplier"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeListRelationFilter
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type SupplierOrderByWithAggregationInput = {
|
||||
@@ -329,8 +335,8 @@ export type SupplierOrderByWithAggregationInput = {
|
||||
state?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
country?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isActive?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.SupplierCountOrderByAggregateInput
|
||||
_avg?: Prisma.SupplierAvgOrderByAggregateInput
|
||||
@@ -353,8 +359,8 @@ export type SupplierScalarWhereWithAggregatesInput = {
|
||||
state?: Prisma.StringNullableWithAggregatesFilter<"Supplier"> | string | null
|
||||
country?: Prisma.StringNullableWithAggregatesFilter<"Supplier"> | string | null
|
||||
isActive?: Prisma.BoolWithAggregatesFilter<"Supplier"> | boolean
|
||||
createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Supplier"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Supplier"> | Date | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Supplier"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Supplier"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Supplier"> | Date | string | null
|
||||
}
|
||||
|
||||
@@ -368,9 +374,11 @@ export type SupplierCreateInput = {
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateInput = {
|
||||
@@ -384,9 +392,11 @@ export type SupplierUncheckedCreateInput = {
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateInput = {
|
||||
@@ -399,9 +409,11 @@ export type SupplierUpdateInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateInput = {
|
||||
@@ -415,9 +427,11 @@ export type SupplierUncheckedUpdateInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateManyInput = {
|
||||
@@ -431,8 +445,8 @@ export type SupplierCreateManyInput = {
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
@@ -446,8 +460,8 @@ export type SupplierUpdateManyMutationInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -462,8 +476,8 @@ export type SupplierUncheckedUpdateManyInput = {
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
@@ -529,6 +543,241 @@ export type SupplierSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SupplierScalarRelationFilter = {
|
||||
is?: Prisma.SupplierWhereInput
|
||||
isNot?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutProductChargesInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductChargesInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateOneRequiredWithoutProductChargesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductChargesInput
|
||||
upsert?: Prisma.SupplierUpsertWithoutProductChargesInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutProductChargesInput, Prisma.SupplierUpdateWithoutProductChargesInput>, Prisma.SupplierUncheckedUpdateWithoutProductChargesInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutPurchaseReceiptsInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutPurchaseReceiptsInput, Prisma.SupplierUncheckedCreateWithoutPurchaseReceiptsInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutPurchaseReceiptsInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateOneRequiredWithoutPurchaseReceiptsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutPurchaseReceiptsInput, Prisma.SupplierUncheckedCreateWithoutPurchaseReceiptsInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutPurchaseReceiptsInput
|
||||
upsert?: Prisma.SupplierUpsertWithoutPurchaseReceiptsInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutPurchaseReceiptsInput, Prisma.SupplierUpdateWithoutPurchaseReceiptsInput>, Prisma.SupplierUncheckedUpdateWithoutPurchaseReceiptsInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutProductChargesInput = {
|
||||
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
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutProductChargesInput = {
|
||||
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
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutProductChargesInput = {
|
||||
where: Prisma.SupplierWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
}
|
||||
|
||||
export type SupplierUpsertWithoutProductChargesInput = {
|
||||
update: Prisma.XOR<Prisma.SupplierUpdateWithoutProductChargesInput, Prisma.SupplierUncheckedUpdateWithoutProductChargesInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutProductChargesInput, Prisma.SupplierUncheckedCreateWithoutProductChargesInput>
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateToOneWithWhereWithoutProductChargesInput = {
|
||||
where?: Prisma.SupplierWhereInput
|
||||
data: Prisma.XOR<Prisma.SupplierUpdateWithoutProductChargesInput, Prisma.SupplierUncheckedUpdateWithoutProductChargesInput>
|
||||
}
|
||||
|
||||
export type SupplierUpdateWithoutProductChargesInput = {
|
||||
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
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutProductChargesInput = {
|
||||
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
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutPurchaseReceiptsInput = {
|
||||
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
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
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
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutPurchaseReceiptsInput = {
|
||||
where: Prisma.SupplierWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutPurchaseReceiptsInput, Prisma.SupplierUncheckedCreateWithoutPurchaseReceiptsInput>
|
||||
}
|
||||
|
||||
export type SupplierUpsertWithoutPurchaseReceiptsInput = {
|
||||
update: Prisma.XOR<Prisma.SupplierUpdateWithoutPurchaseReceiptsInput, Prisma.SupplierUncheckedUpdateWithoutPurchaseReceiptsInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutPurchaseReceiptsInput, Prisma.SupplierUncheckedCreateWithoutPurchaseReceiptsInput>
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateToOneWithWhereWithoutPurchaseReceiptsInput = {
|
||||
where?: Prisma.SupplierWhereInput
|
||||
data: Prisma.XOR<Prisma.SupplierUpdateWithoutPurchaseReceiptsInput, Prisma.SupplierUncheckedUpdateWithoutPurchaseReceiptsInput>
|
||||
}
|
||||
|
||||
export type SupplierUpdateWithoutPurchaseReceiptsInput = {
|
||||
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
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
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
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type SupplierCountOutputType
|
||||
*/
|
||||
|
||||
export type SupplierCountOutputType = {
|
||||
productCharges: number
|
||||
purchaseReceipts: number
|
||||
}
|
||||
|
||||
export type SupplierCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productCharges?: boolean | SupplierCountOutputTypeCountProductChargesArgs
|
||||
purchaseReceipts?: boolean | SupplierCountOutputTypeCountPurchaseReceiptsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
export type SupplierCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the SupplierCountOutputType
|
||||
*/
|
||||
select?: Prisma.SupplierCountOutputTypeSelect<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
export type SupplierCountOutputTypeCountProductChargesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductChargeWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierCountOutputType without action
|
||||
*/
|
||||
export type SupplierCountOutputTypeCountPurchaseReceiptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PurchaseReceiptWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
@@ -545,6 +794,9 @@ export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
productCharges?: boolean | Prisma.Supplier$productChargesArgs<ExtArgs>
|
||||
purchaseReceipts?: boolean | Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["supplier"]>
|
||||
|
||||
|
||||
@@ -566,10 +818,18 @@ export type SupplierSelectScalar = {
|
||||
}
|
||||
|
||||
export type SupplierOmit<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"]["supplier"]>
|
||||
export type SupplierInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productCharges?: boolean | Prisma.Supplier$productChargesArgs<ExtArgs>
|
||||
purchaseReceipts?: boolean | Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $SupplierPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Supplier"
|
||||
objects: {}
|
||||
objects: {
|
||||
productCharges: Prisma.$ProductChargePayload<ExtArgs>[]
|
||||
purchaseReceipts: Prisma.$PurchaseReceiptPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
firstName: string
|
||||
@@ -581,8 +841,8 @@ export type $SupplierPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
state: string | null
|
||||
country: string | null
|
||||
isActive: boolean
|
||||
createdAt: Date | null
|
||||
updatedAt: Date | null
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
deletedAt: Date | null
|
||||
}, ExtArgs["result"]["supplier"]>
|
||||
composites: {}
|
||||
@@ -924,6 +1184,8 @@ readonly fields: SupplierFieldRefs;
|
||||
*/
|
||||
export interface Prisma__SupplierClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
productCharges<T extends Prisma.Supplier$productChargesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$productChargesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
purchaseReceipts<T extends Prisma.Supplier$purchaseReceiptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$purchaseReceiptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -982,6 +1244,10 @@ export type SupplierFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Supplier to fetch.
|
||||
*/
|
||||
@@ -1000,6 +1266,10 @@ export type SupplierFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensio
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Supplier to fetch.
|
||||
*/
|
||||
@@ -1018,6 +1288,10 @@ export type SupplierFindFirstArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Supplier to fetch.
|
||||
*/
|
||||
@@ -1066,6 +1340,10 @@ export type SupplierFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extension
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Supplier to fetch.
|
||||
*/
|
||||
@@ -1114,6 +1392,10 @@ export type SupplierFindManyArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Suppliers to fetch.
|
||||
*/
|
||||
@@ -1157,6 +1439,10 @@ export type SupplierCreateArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to create a Supplier.
|
||||
*/
|
||||
@@ -1186,6 +1472,10 @@ export type SupplierUpdateArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to update a Supplier.
|
||||
*/
|
||||
@@ -1226,6 +1516,10 @@ export type SupplierUpsertArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* The filter to search for the Supplier to update in case it exists.
|
||||
*/
|
||||
@@ -1252,6 +1546,10 @@ export type SupplierDeleteArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter which Supplier to delete.
|
||||
*/
|
||||
@@ -1272,6 +1570,54 @@ export type SupplierDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.productCharges
|
||||
*/
|
||||
export type Supplier$productChargesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ProductCharge
|
||||
*/
|
||||
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ProductCharge
|
||||
*/
|
||||
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductChargeWhereInput
|
||||
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductChargeWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.purchaseReceipts
|
||||
*/
|
||||
export type Supplier$purchaseReceiptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the PurchaseReceipt
|
||||
*/
|
||||
select?: Prisma.PurchaseReceiptSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the PurchaseReceipt
|
||||
*/
|
||||
omit?: Prisma.PurchaseReceiptOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.PurchaseReceiptInclude<ExtArgs> | null
|
||||
where?: Prisma.PurchaseReceiptWhereInput
|
||||
orderBy?: Prisma.PurchaseReceiptOrderByWithRelationInput | Prisma.PurchaseReceiptOrderByWithRelationInput[]
|
||||
cursor?: Prisma.PurchaseReceiptWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.PurchaseReceiptScalarFieldEnum | Prisma.PurchaseReceiptScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier without action
|
||||
*/
|
||||
@@ -1284,4 +1630,8 @@ export type SupplierDefaultArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
* Omit specific fields from the Supplier
|
||||
*/
|
||||
omit?: Prisma.SupplierOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SupplierInclude<ExtArgs> | null
|
||||
}
|
||||
|
||||
@@ -43,6 +43,9 @@ export type UserMinAggregateOutputType = {
|
||||
firstName: string | null
|
||||
lastName: string | null
|
||||
roleId: number | null
|
||||
createdAt: Date | null
|
||||
deletedAt: Date | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type UserMaxAggregateOutputType = {
|
||||
@@ -52,6 +55,9 @@ export type UserMaxAggregateOutputType = {
|
||||
firstName: string | null
|
||||
lastName: string | null
|
||||
roleId: number | null
|
||||
createdAt: Date | null
|
||||
deletedAt: Date | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type UserCountAggregateOutputType = {
|
||||
@@ -61,6 +67,9 @@ export type UserCountAggregateOutputType = {
|
||||
firstName: number
|
||||
lastName: number
|
||||
roleId: number
|
||||
createdAt: number
|
||||
deletedAt: number
|
||||
updatedAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -82,6 +91,9 @@ export type UserMinAggregateInputType = {
|
||||
firstName?: true
|
||||
lastName?: true
|
||||
roleId?: true
|
||||
createdAt?: true
|
||||
deletedAt?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type UserMaxAggregateInputType = {
|
||||
@@ -91,6 +103,9 @@ export type UserMaxAggregateInputType = {
|
||||
firstName?: true
|
||||
lastName?: true
|
||||
roleId?: true
|
||||
createdAt?: true
|
||||
deletedAt?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type UserCountAggregateInputType = {
|
||||
@@ -100,6 +115,9 @@ export type UserCountAggregateInputType = {
|
||||
firstName?: true
|
||||
lastName?: true
|
||||
roleId?: true
|
||||
createdAt?: true
|
||||
deletedAt?: true
|
||||
updatedAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -196,6 +214,9 @@ export type UserGroupByOutputType = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
roleId: number
|
||||
createdAt: Date
|
||||
deletedAt: Date | null
|
||||
updatedAt: Date
|
||||
_count: UserCountAggregateOutputType | null
|
||||
_avg: UserAvgAggregateOutputType | null
|
||||
_sum: UserSumAggregateOutputType | null
|
||||
@@ -228,6 +249,9 @@ export type UserWhereInput = {
|
||||
firstName?: Prisma.StringFilter<"User"> | string
|
||||
lastName?: Prisma.StringFilter<"User"> | string
|
||||
roleId?: Prisma.IntFilter<"User"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
|
||||
}
|
||||
|
||||
@@ -238,6 +262,9 @@ export type UserOrderByWithRelationInput = {
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
roleId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
role?: Prisma.RoleOrderByWithRelationInput
|
||||
_relevance?: Prisma.UserOrderByRelevanceInput
|
||||
}
|
||||
@@ -252,6 +279,9 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
firstName?: Prisma.StringFilter<"User"> | string
|
||||
lastName?: Prisma.StringFilter<"User"> | string
|
||||
roleId?: Prisma.IntFilter<"User"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
role?: Prisma.XOR<Prisma.RoleScalarRelationFilter, Prisma.RoleWhereInput>
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
@@ -262,6 +292,9 @@ export type UserOrderByWithAggregationInput = {
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
roleId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
_count?: Prisma.UserCountOrderByAggregateInput
|
||||
_avg?: Prisma.UserAvgOrderByAggregateInput
|
||||
_max?: Prisma.UserMaxOrderByAggregateInput
|
||||
@@ -279,6 +312,9 @@ export type UserScalarWhereWithAggregatesInput = {
|
||||
firstName?: Prisma.StringWithAggregatesFilter<"User"> | string
|
||||
lastName?: Prisma.StringWithAggregatesFilter<"User"> | string
|
||||
roleId?: Prisma.IntWithAggregatesFilter<"User"> | number
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
|
||||
}
|
||||
|
||||
export type UserCreateInput = {
|
||||
@@ -286,6 +322,9 @@ export type UserCreateInput = {
|
||||
password: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
role: Prisma.RoleCreateNestedOneWithoutUsersInput
|
||||
}
|
||||
|
||||
@@ -296,6 +335,9 @@ export type UserUncheckedCreateInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
roleId: number
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type UserUpdateInput = {
|
||||
@@ -303,6 +345,9 @@ export type UserUpdateInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
role?: Prisma.RoleUpdateOneRequiredWithoutUsersNestedInput
|
||||
}
|
||||
|
||||
@@ -313,6 +358,9 @@ export type UserUncheckedUpdateInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
roleId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type UserCreateManyInput = {
|
||||
@@ -322,6 +370,9 @@ export type UserCreateManyInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
roleId: number
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type UserUpdateManyMutationInput = {
|
||||
@@ -329,6 +380,9 @@ export type UserUpdateManyMutationInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateManyInput = {
|
||||
@@ -338,6 +392,9 @@ export type UserUncheckedUpdateManyInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
roleId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type UserOrderByRelevanceInput = {
|
||||
@@ -353,6 +410,9 @@ export type UserCountOrderByAggregateInput = {
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
roleId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type UserAvgOrderByAggregateInput = {
|
||||
@@ -367,6 +427,9 @@ export type UserMaxOrderByAggregateInput = {
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
roleId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type UserMinOrderByAggregateInput = {
|
||||
@@ -376,6 +439,9 @@ export type UserMinOrderByAggregateInput = {
|
||||
firstName?: Prisma.SortOrder
|
||||
lastName?: Prisma.SortOrder
|
||||
roleId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type UserSumOrderByAggregateInput = {
|
||||
@@ -397,6 +463,14 @@ export type StringFieldUpdateOperationsInput = {
|
||||
set?: string
|
||||
}
|
||||
|
||||
export type DateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string
|
||||
}
|
||||
|
||||
export type NullableDateTimeFieldUpdateOperationsInput = {
|
||||
set?: Date | string | null
|
||||
}
|
||||
|
||||
export type IntFieldUpdateOperationsInput = {
|
||||
set?: number
|
||||
increment?: number
|
||||
@@ -452,6 +526,9 @@ export type UserCreateWithoutRoleInput = {
|
||||
password: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutRoleInput = {
|
||||
@@ -460,6 +537,9 @@ export type UserUncheckedCreateWithoutRoleInput = {
|
||||
password: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutRoleInput = {
|
||||
@@ -498,6 +578,9 @@ export type UserScalarWhereInput = {
|
||||
firstName?: Prisma.StringFilter<"User"> | string
|
||||
lastName?: Prisma.StringFilter<"User"> | string
|
||||
roleId?: Prisma.IntFilter<"User"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
}
|
||||
|
||||
export type UserCreateManyRoleInput = {
|
||||
@@ -506,6 +589,9 @@ export type UserCreateManyRoleInput = {
|
||||
password: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
createdAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type UserUpdateWithoutRoleInput = {
|
||||
@@ -513,6 +599,9 @@ export type UserUpdateWithoutRoleInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutRoleInput = {
|
||||
@@ -521,6 +610,9 @@ export type UserUncheckedUpdateWithoutRoleInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateManyWithoutRoleInput = {
|
||||
@@ -529,6 +621,9 @@ export type UserUncheckedUpdateManyWithoutRoleInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
||||
@@ -540,6 +635,9 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
||||
firstName?: boolean
|
||||
lastName?: boolean
|
||||
roleId?: boolean
|
||||
createdAt?: boolean
|
||||
deletedAt?: boolean
|
||||
updatedAt?: boolean
|
||||
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["user"]>
|
||||
|
||||
@@ -552,9 +650,12 @@ export type UserSelectScalar = {
|
||||
firstName?: boolean
|
||||
lastName?: boolean
|
||||
roleId?: boolean
|
||||
createdAt?: boolean
|
||||
deletedAt?: boolean
|
||||
updatedAt?: boolean
|
||||
}
|
||||
|
||||
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mobileNumber" | "password" | "firstName" | "lastName" | "roleId", ExtArgs["result"]["user"]>
|
||||
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mobileNumber" | "password" | "firstName" | "lastName" | "roleId" | "createdAt" | "deletedAt" | "updatedAt", ExtArgs["result"]["user"]>
|
||||
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
role?: boolean | Prisma.RoleDefaultArgs<ExtArgs>
|
||||
}
|
||||
@@ -571,6 +672,9 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
firstName: string
|
||||
lastName: string
|
||||
roleId: number
|
||||
createdAt: Date
|
||||
deletedAt: Date | null
|
||||
updatedAt: Date
|
||||
}, ExtArgs["result"]["user"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -947,6 +1051,9 @@ export interface UserFieldRefs {
|
||||
readonly firstName: Prisma.FieldRef<"User", 'String'>
|
||||
readonly lastName: Prisma.FieldRef<"User", 'String'>
|
||||
readonly roleId: Prisma.FieldRef<"User", 'Int'>
|
||||
readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
|
||||
readonly deletedAt: Prisma.FieldRef<"User", 'DateTime'>
|
||||
readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,713 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `inventory_overview` 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 inventory_overview
|
||||
*
|
||||
*/
|
||||
export type inventory_overviewModel = runtime.Types.Result.DefaultSelection<Prisma.$inventory_overviewPayload>
|
||||
|
||||
export type AggregateInventory_overview = {
|
||||
_count: Inventory_overviewCountAggregateOutputType | null
|
||||
_avg: Inventory_overviewAvgAggregateOutputType | null
|
||||
_sum: Inventory_overviewSumAggregateOutputType | null
|
||||
_min: Inventory_overviewMinAggregateOutputType | null
|
||||
_max: Inventory_overviewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewAvgAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewSumAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewMinAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewMaxAggregateOutputType = {
|
||||
ProductId: number | null
|
||||
stock_quantity: runtime.Decimal | null
|
||||
avgCost: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
updatedAt: Date | null
|
||||
}
|
||||
|
||||
export type Inventory_overviewCountAggregateOutputType = {
|
||||
ProductId: number
|
||||
stock_quantity: number
|
||||
avgCost: number
|
||||
totalCost: number
|
||||
updatedAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type Inventory_overviewAvgAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewSumAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewMinAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewMaxAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewCountAggregateInputType = {
|
||||
ProductId?: true
|
||||
stock_quantity?: true
|
||||
avgCost?: true
|
||||
totalCost?: true
|
||||
updatedAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type Inventory_overviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which inventory_overview to aggregate.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned inventory_overviews
|
||||
**/
|
||||
_count?: true | Inventory_overviewCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: Inventory_overviewAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: Inventory_overviewSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: Inventory_overviewMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: Inventory_overviewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetInventory_overviewAggregateType<T extends Inventory_overviewAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateInventory_overview]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateInventory_overview[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateInventory_overview[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithAggregationInput | Prisma.inventory_overviewOrderByWithAggregationInput[]
|
||||
by: Prisma.Inventory_overviewScalarFieldEnum[] | Prisma.Inventory_overviewScalarFieldEnum
|
||||
having?: Prisma.inventory_overviewScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: Inventory_overviewCountAggregateInputType | true
|
||||
_avg?: Inventory_overviewAvgAggregateInputType
|
||||
_sum?: Inventory_overviewSumAggregateInputType
|
||||
_min?: Inventory_overviewMinAggregateInputType
|
||||
_max?: Inventory_overviewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type Inventory_overviewGroupByOutputType = {
|
||||
ProductId: number
|
||||
stock_quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
updatedAt: Date
|
||||
_count: Inventory_overviewCountAggregateOutputType | null
|
||||
_avg: Inventory_overviewAvgAggregateOutputType | null
|
||||
_sum: Inventory_overviewSumAggregateOutputType | null
|
||||
_min: Inventory_overviewMinAggregateOutputType | null
|
||||
_max: Inventory_overviewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetInventory_overviewGroupByPayload<T extends inventory_overviewGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<Inventory_overviewGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof Inventory_overviewGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], Inventory_overviewGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], Inventory_overviewGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewWhereInput = {
|
||||
AND?: Prisma.inventory_overviewWhereInput | Prisma.inventory_overviewWhereInput[]
|
||||
OR?: Prisma.inventory_overviewWhereInput[]
|
||||
NOT?: Prisma.inventory_overviewWhereInput | Prisma.inventory_overviewWhereInput[]
|
||||
ProductId?: Prisma.IntFilter<"inventory_overview"> | number
|
||||
stock_quantity?: Prisma.DecimalFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"inventory_overview"> | Date | string
|
||||
}
|
||||
|
||||
export type inventory_overviewOrderByWithRelationInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewOrderByWithAggregationInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
_count?: Prisma.inventory_overviewCountOrderByAggregateInput
|
||||
_avg?: Prisma.inventory_overviewAvgOrderByAggregateInput
|
||||
_max?: Prisma.inventory_overviewMaxOrderByAggregateInput
|
||||
_min?: Prisma.inventory_overviewMinOrderByAggregateInput
|
||||
_sum?: Prisma.inventory_overviewSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type inventory_overviewScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.inventory_overviewScalarWhereWithAggregatesInput | Prisma.inventory_overviewScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.inventory_overviewScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.inventory_overviewScalarWhereWithAggregatesInput | Prisma.inventory_overviewScalarWhereWithAggregatesInput[]
|
||||
ProductId?: Prisma.IntWithAggregatesFilter<"inventory_overview"> | number
|
||||
stock_quantity?: Prisma.DecimalWithAggregatesFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"inventory_overview"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"inventory_overview"> | Date | string
|
||||
}
|
||||
|
||||
export type inventory_overviewCountOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewAvgOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewMaxOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewMinOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type inventory_overviewSumOrderByAggregateInput = {
|
||||
ProductId?: Prisma.SortOrder
|
||||
stock_quantity?: Prisma.SortOrder
|
||||
avgCost?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
ProductId?: boolean
|
||||
stock_quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
updatedAt?: boolean
|
||||
}, ExtArgs["result"]["inventory_overview"]>
|
||||
|
||||
|
||||
|
||||
export type inventory_overviewSelectScalar = {
|
||||
ProductId?: boolean
|
||||
stock_quantity?: boolean
|
||||
avgCost?: boolean
|
||||
totalCost?: boolean
|
||||
updatedAt?: boolean
|
||||
}
|
||||
|
||||
export type inventory_overviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"ProductId" | "stock_quantity" | "avgCost" | "totalCost" | "updatedAt", ExtArgs["result"]["inventory_overview"]>
|
||||
|
||||
export type $inventory_overviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "inventory_overview"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
ProductId: number
|
||||
stock_quantity: runtime.Decimal
|
||||
avgCost: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
updatedAt: Date
|
||||
}, ExtArgs["result"]["inventory_overview"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type inventory_overviewGetPayload<S extends boolean | null | undefined | inventory_overviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload, S>
|
||||
|
||||
export type inventory_overviewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<inventory_overviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: Inventory_overviewCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface inventory_overviewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['inventory_overview'], meta: { name: 'inventory_overview' } }
|
||||
/**
|
||||
* Find the first Inventory_overview 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 {inventory_overviewFindFirstArgs} args - Arguments to find a Inventory_overview
|
||||
* @example
|
||||
* // Get one Inventory_overview
|
||||
* const inventory_overview = await prisma.inventory_overview.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends inventory_overviewFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, inventory_overviewFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__inventory_overviewClient<runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first Inventory_overview 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 {inventory_overviewFindFirstOrThrowArgs} args - Arguments to find a Inventory_overview
|
||||
* @example
|
||||
* // Get one Inventory_overview
|
||||
* const inventory_overview = await prisma.inventory_overview.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends inventory_overviewFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, inventory_overviewFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__inventory_overviewClient<runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more Inventory_overviews 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 {inventory_overviewFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all Inventory_overviews
|
||||
* const inventory_overviews = await prisma.inventory_overview.findMany()
|
||||
*
|
||||
* // Get first 10 Inventory_overviews
|
||||
* const inventory_overviews = await prisma.inventory_overview.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `ProductId`
|
||||
* const inventory_overviewWithProductIdOnly = await prisma.inventory_overview.findMany({ select: { ProductId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends inventory_overviewFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, inventory_overviewFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$inventory_overviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of Inventory_overviews.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {inventory_overviewCountArgs} args - Arguments to filter Inventory_overviews to count.
|
||||
* @example
|
||||
* // Count the number of Inventory_overviews
|
||||
* const count = await prisma.inventory_overview.count({
|
||||
* where: {
|
||||
* // ... the filter for the Inventory_overviews we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends inventory_overviewCountArgs>(
|
||||
args?: Prisma.Subset<T, inventory_overviewCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], Inventory_overviewCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a Inventory_overview.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {Inventory_overviewAggregateArgs} 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 Inventory_overviewAggregateArgs>(args: Prisma.Subset<T, Inventory_overviewAggregateArgs>): Prisma.PrismaPromise<GetInventory_overviewAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by Inventory_overview.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {inventory_overviewGroupByArgs} 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 inventory_overviewGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: inventory_overviewGroupByArgs['orderBy'] }
|
||||
: { orderBy?: inventory_overviewGroupByArgs['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, inventory_overviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInventory_overviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the inventory_overview model
|
||||
*/
|
||||
readonly fields: inventory_overviewFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for inventory_overview.
|
||||
* 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__inventory_overviewClient<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 inventory_overview model
|
||||
*/
|
||||
export interface inventory_overviewFieldRefs {
|
||||
readonly ProductId: Prisma.FieldRef<"inventory_overview", 'Int'>
|
||||
readonly stock_quantity: Prisma.FieldRef<"inventory_overview", 'Decimal'>
|
||||
readonly avgCost: Prisma.FieldRef<"inventory_overview", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"inventory_overview", 'Decimal'>
|
||||
readonly updatedAt: Prisma.FieldRef<"inventory_overview", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* inventory_overview findFirst
|
||||
*/
|
||||
export type inventory_overviewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which inventory_overview to fetch.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of inventory_overviews.
|
||||
*/
|
||||
distinct?: Prisma.Inventory_overviewScalarFieldEnum | Prisma.Inventory_overviewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* inventory_overview findFirstOrThrow
|
||||
*/
|
||||
export type inventory_overviewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which inventory_overview to fetch.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of inventory_overviews.
|
||||
*/
|
||||
distinct?: Prisma.Inventory_overviewScalarFieldEnum | Prisma.Inventory_overviewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* inventory_overview findMany
|
||||
*/
|
||||
export type inventory_overviewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which inventory_overviews to fetch.
|
||||
*/
|
||||
where?: Prisma.inventory_overviewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of inventory_overviews to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.inventory_overviewOrderByWithRelationInput | Prisma.inventory_overviewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` inventory_overviews 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` inventory_overviews.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.Inventory_overviewScalarFieldEnum | Prisma.Inventory_overviewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* inventory_overview without action
|
||||
*/
|
||||
export type inventory_overviewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the inventory_overview
|
||||
*/
|
||||
select?: Prisma.inventory_overviewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the inventory_overview
|
||||
*/
|
||||
omit?: Prisma.inventory_overviewOmit<ExtArgs> | null
|
||||
}
|
||||
@@ -0,0 +1,803 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `stock_cardex` 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 stock_cardex
|
||||
*
|
||||
*/
|
||||
export type stock_cardexModel = runtime.Types.Result.DefaultSelection<Prisma.$stock_cardexPayload>
|
||||
|
||||
export type AggregateStock_cardex = {
|
||||
_count: Stock_cardexCountAggregateOutputType | null
|
||||
_avg: Stock_cardexAvgAggregateOutputType | null
|
||||
_sum: Stock_cardexSumAggregateOutputType | null
|
||||
_min: Stock_cardexMinAggregateOutputType | null
|
||||
_max: Stock_cardexMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type Stock_cardexAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_cardexSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_cardexMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
type: $Enums.stock_cardex_type | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
}
|
||||
|
||||
export type Stock_cardexMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
movement_id: number | null
|
||||
type: $Enums.stock_cardex_type | null
|
||||
quantity: runtime.Decimal | null
|
||||
fee: runtime.Decimal | null
|
||||
totalCost: runtime.Decimal | null
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date | null
|
||||
}
|
||||
|
||||
export type Stock_cardexCountAggregateOutputType = {
|
||||
productId: number
|
||||
movement_id: number
|
||||
type: number
|
||||
quantity: number
|
||||
fee: number
|
||||
totalCost: number
|
||||
balance_quantity: number
|
||||
balance_avg_cost: number
|
||||
createdAt: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type Stock_cardexAvgAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexSumAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexMinAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
type?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
createdAt?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexMaxAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
type?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
createdAt?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexCountAggregateInputType = {
|
||||
productId?: true
|
||||
movement_id?: true
|
||||
type?: true
|
||||
quantity?: true
|
||||
fee?: true
|
||||
totalCost?: true
|
||||
balance_quantity?: true
|
||||
balance_avg_cost?: true
|
||||
createdAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type Stock_cardexAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which stock_cardex to aggregate.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned stock_cardexes
|
||||
**/
|
||||
_count?: true | Stock_cardexCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: Stock_cardexAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: Stock_cardexSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: Stock_cardexMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: Stock_cardexMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetStock_cardexAggregateType<T extends Stock_cardexAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateStock_cardex]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_cardex[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_cardex[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type stock_cardexGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
orderBy?: Prisma.stock_cardexOrderByWithAggregationInput | Prisma.stock_cardexOrderByWithAggregationInput[]
|
||||
by: Prisma.Stock_cardexScalarFieldEnum[] | Prisma.Stock_cardexScalarFieldEnum
|
||||
having?: Prisma.stock_cardexScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: Stock_cardexCountAggregateInputType | true
|
||||
_avg?: Stock_cardexAvgAggregateInputType
|
||||
_sum?: Stock_cardexSumAggregateInputType
|
||||
_min?: Stock_cardexMinAggregateInputType
|
||||
_max?: Stock_cardexMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type Stock_cardexGroupByOutputType = {
|
||||
productId: number
|
||||
movement_id: number
|
||||
type: $Enums.stock_cardex_type
|
||||
quantity: runtime.Decimal
|
||||
fee: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date
|
||||
_count: Stock_cardexCountAggregateOutputType | null
|
||||
_avg: Stock_cardexAvgAggregateOutputType | null
|
||||
_sum: Stock_cardexSumAggregateOutputType | null
|
||||
_min: Stock_cardexMinAggregateOutputType | null
|
||||
_max: Stock_cardexMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetStock_cardexGroupByPayload<T extends stock_cardexGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<Stock_cardexGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof Stock_cardexGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], Stock_cardexGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], Stock_cardexGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type stock_cardexWhereInput = {
|
||||
AND?: Prisma.stock_cardexWhereInput | Prisma.stock_cardexWhereInput[]
|
||||
OR?: Prisma.stock_cardexWhereInput[]
|
||||
NOT?: Prisma.stock_cardexWhereInput | Prisma.stock_cardexWhereInput[]
|
||||
productId?: Prisma.IntFilter<"stock_cardex"> | number
|
||||
movement_id?: Prisma.IntFilter<"stock_cardex"> | number
|
||||
type?: Prisma.Enumstock_cardex_typeFilter<"stock_cardex"> | $Enums.stock_cardex_type
|
||||
quantity?: Prisma.DecimalFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
balance_quantity?: Prisma.DecimalNullableFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
balance_avg_cost?: Prisma.DecimalNullableFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"stock_cardex"> | Date | string
|
||||
}
|
||||
|
||||
export type stock_cardexOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
_count?: Prisma.stock_cardexCountOrderByAggregateInput
|
||||
_avg?: Prisma.stock_cardexAvgOrderByAggregateInput
|
||||
_max?: Prisma.stock_cardexMaxOrderByAggregateInput
|
||||
_min?: Prisma.stock_cardexMinOrderByAggregateInput
|
||||
_sum?: Prisma.stock_cardexSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type stock_cardexScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.stock_cardexScalarWhereWithAggregatesInput | Prisma.stock_cardexScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.stock_cardexScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.stock_cardexScalarWhereWithAggregatesInput | Prisma.stock_cardexScalarWhereWithAggregatesInput[]
|
||||
productId?: Prisma.IntWithAggregatesFilter<"stock_cardex"> | number
|
||||
movement_id?: Prisma.IntWithAggregatesFilter<"stock_cardex"> | number
|
||||
type?: Prisma.Enumstock_cardex_typeWithAggregatesFilter<"stock_cardex"> | $Enums.stock_cardex_type
|
||||
quantity?: Prisma.DecimalWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
balance_quantity?: Prisma.DecimalNullableWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
balance_avg_cost?: Prisma.DecimalNullableWithAggregatesFilter<"stock_cardex"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"stock_cardex"> | Date | string
|
||||
}
|
||||
|
||||
export type stock_cardexCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
type?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_cardexSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
movement_id?: Prisma.SortOrder
|
||||
quantity?: Prisma.SortOrder
|
||||
fee?: Prisma.SortOrder
|
||||
totalCost?: Prisma.SortOrder
|
||||
balance_quantity?: Prisma.SortOrder
|
||||
balance_avg_cost?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type stock_cardexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
productId?: boolean
|
||||
movement_id?: boolean
|
||||
type?: boolean
|
||||
quantity?: boolean
|
||||
fee?: boolean
|
||||
totalCost?: boolean
|
||||
balance_quantity?: boolean
|
||||
balance_avg_cost?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["stock_cardex"]>
|
||||
|
||||
|
||||
|
||||
export type stock_cardexSelectScalar = {
|
||||
productId?: boolean
|
||||
movement_id?: boolean
|
||||
type?: boolean
|
||||
quantity?: boolean
|
||||
fee?: boolean
|
||||
totalCost?: boolean
|
||||
balance_quantity?: boolean
|
||||
balance_avg_cost?: boolean
|
||||
createdAt?: boolean
|
||||
}
|
||||
|
||||
export type stock_cardexOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "movement_id" | "type" | "quantity" | "fee" | "totalCost" | "balance_quantity" | "balance_avg_cost" | "createdAt", ExtArgs["result"]["stock_cardex"]>
|
||||
|
||||
export type $stock_cardexPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "stock_cardex"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
productId: number
|
||||
movement_id: number
|
||||
type: $Enums.stock_cardex_type
|
||||
quantity: runtime.Decimal
|
||||
fee: runtime.Decimal
|
||||
totalCost: runtime.Decimal
|
||||
balance_quantity: runtime.Decimal | null
|
||||
balance_avg_cost: runtime.Decimal | null
|
||||
createdAt: Date
|
||||
}, ExtArgs["result"]["stock_cardex"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type stock_cardexGetPayload<S extends boolean | null | undefined | stock_cardexDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload, S>
|
||||
|
||||
export type stock_cardexCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<stock_cardexFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: Stock_cardexCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface stock_cardexDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['stock_cardex'], meta: { name: 'stock_cardex' } }
|
||||
/**
|
||||
* Find the first Stock_cardex 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 {stock_cardexFindFirstArgs} args - Arguments to find a Stock_cardex
|
||||
* @example
|
||||
* // Get one Stock_cardex
|
||||
* const stock_cardex = await prisma.stock_cardex.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends stock_cardexFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_cardexFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_cardexClient<runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first Stock_cardex 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 {stock_cardexFindFirstOrThrowArgs} args - Arguments to find a Stock_cardex
|
||||
* @example
|
||||
* // Get one Stock_cardex
|
||||
* const stock_cardex = await prisma.stock_cardex.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends stock_cardexFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_cardexFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_cardexClient<runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more Stock_cardexes 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 {stock_cardexFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all Stock_cardexes
|
||||
* const stock_cardexes = await prisma.stock_cardex.findMany()
|
||||
*
|
||||
* // Get first 10 Stock_cardexes
|
||||
* const stock_cardexes = await prisma.stock_cardex.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `productId`
|
||||
* const stock_cardexWithProductIdOnly = await prisma.stock_cardex.findMany({ select: { productId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends stock_cardexFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_cardexFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$stock_cardexPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of Stock_cardexes.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_cardexCountArgs} args - Arguments to filter Stock_cardexes to count.
|
||||
* @example
|
||||
* // Count the number of Stock_cardexes
|
||||
* const count = await prisma.stock_cardex.count({
|
||||
* where: {
|
||||
* // ... the filter for the Stock_cardexes we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends stock_cardexCountArgs>(
|
||||
args?: Prisma.Subset<T, stock_cardexCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], Stock_cardexCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a Stock_cardex.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {Stock_cardexAggregateArgs} 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 Stock_cardexAggregateArgs>(args: Prisma.Subset<T, Stock_cardexAggregateArgs>): Prisma.PrismaPromise<GetStock_cardexAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by Stock_cardex.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_cardexGroupByArgs} 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 stock_cardexGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: stock_cardexGroupByArgs['orderBy'] }
|
||||
: { orderBy?: stock_cardexGroupByArgs['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, stock_cardexGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStock_cardexGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the stock_cardex model
|
||||
*/
|
||||
readonly fields: stock_cardexFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for stock_cardex.
|
||||
* 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__stock_cardexClient<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 stock_cardex model
|
||||
*/
|
||||
export interface stock_cardexFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"stock_cardex", 'Int'>
|
||||
readonly movement_id: Prisma.FieldRef<"stock_cardex", 'Int'>
|
||||
readonly type: Prisma.FieldRef<"stock_cardex", 'stock_cardex_type'>
|
||||
readonly quantity: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly fee: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly totalCost: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly balance_quantity: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly balance_avg_cost: Prisma.FieldRef<"stock_cardex", 'Decimal'>
|
||||
readonly createdAt: Prisma.FieldRef<"stock_cardex", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* stock_cardex findFirst
|
||||
*/
|
||||
export type stock_cardexFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_cardex to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_cardexes.
|
||||
*/
|
||||
distinct?: Prisma.Stock_cardexScalarFieldEnum | Prisma.Stock_cardexScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_cardex findFirstOrThrow
|
||||
*/
|
||||
export type stock_cardexFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_cardex to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_cardexes.
|
||||
*/
|
||||
distinct?: Prisma.Stock_cardexScalarFieldEnum | Prisma.Stock_cardexScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_cardex findMany
|
||||
*/
|
||||
export type stock_cardexFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_cardexes to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_cardexWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_cardexes to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_cardexOrderByWithRelationInput | Prisma.stock_cardexOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_cardexes 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` stock_cardexes.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.Stock_cardexScalarFieldEnum | Prisma.Stock_cardexScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_cardex without action
|
||||
*/
|
||||
export type stock_cardexDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_cardex
|
||||
*/
|
||||
select?: Prisma.stock_cardexSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_cardex
|
||||
*/
|
||||
omit?: Prisma.stock_cardexOmit<ExtArgs> | null
|
||||
}
|
||||
@@ -0,0 +1,671 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports the `stock_view` 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 stock_view
|
||||
*
|
||||
*/
|
||||
export type stock_viewModel = runtime.Types.Result.DefaultSelection<Prisma.$stock_viewPayload>
|
||||
|
||||
export type AggregateStock_view = {
|
||||
_count: Stock_viewCountAggregateOutputType | null
|
||||
_avg: Stock_viewAvgAggregateOutputType | null
|
||||
_sum: Stock_viewSumAggregateOutputType | null
|
||||
_min: Stock_viewMinAggregateOutputType | null
|
||||
_max: Stock_viewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type Stock_viewAvgAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewSumAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewMinAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewMaxAggregateOutputType = {
|
||||
productId: number | null
|
||||
inventoryId: number | null
|
||||
stock: runtime.Decimal | null
|
||||
}
|
||||
|
||||
export type Stock_viewCountAggregateOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
stock: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type Stock_viewAvgAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewSumAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewMinAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewMaxAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
}
|
||||
|
||||
export type Stock_viewCountAggregateInputType = {
|
||||
productId?: true
|
||||
inventoryId?: true
|
||||
stock?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
export type Stock_viewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Filter which stock_view to aggregate.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Count returned stock_views
|
||||
**/
|
||||
_count?: true | Stock_viewCountAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to average
|
||||
**/
|
||||
_avg?: Stock_viewAvgAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to sum
|
||||
**/
|
||||
_sum?: Stock_viewSumAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the minimum value
|
||||
**/
|
||||
_min?: Stock_viewMinAggregateInputType
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
* Select which fields to find the maximum value
|
||||
**/
|
||||
_max?: Stock_viewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type GetStock_viewAggregateType<T extends Stock_viewAggregateArgs> = {
|
||||
[P in keyof T & keyof AggregateStock_view]: P extends '_count' | 'count'
|
||||
? T[P] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_view[P]>
|
||||
: Prisma.GetScalarType<T[P], AggregateStock_view[P]>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export type stock_viewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
orderBy?: Prisma.stock_viewOrderByWithAggregationInput | Prisma.stock_viewOrderByWithAggregationInput[]
|
||||
by: Prisma.Stock_viewScalarFieldEnum[] | Prisma.Stock_viewScalarFieldEnum
|
||||
having?: Prisma.stock_viewScalarWhereWithAggregatesInput
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: Stock_viewCountAggregateInputType | true
|
||||
_avg?: Stock_viewAvgAggregateInputType
|
||||
_sum?: Stock_viewSumAggregateInputType
|
||||
_min?: Stock_viewMinAggregateInputType
|
||||
_max?: Stock_viewMaxAggregateInputType
|
||||
}
|
||||
|
||||
export type Stock_viewGroupByOutputType = {
|
||||
productId: number
|
||||
inventoryId: number
|
||||
stock: runtime.Decimal | null
|
||||
_count: Stock_viewCountAggregateOutputType | null
|
||||
_avg: Stock_viewAvgAggregateOutputType | null
|
||||
_sum: Stock_viewSumAggregateOutputType | null
|
||||
_min: Stock_viewMinAggregateOutputType | null
|
||||
_max: Stock_viewMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
type GetStock_viewGroupByPayload<T extends stock_viewGroupByArgs> = Prisma.PrismaPromise<
|
||||
Array<
|
||||
Prisma.PickEnumerable<Stock_viewGroupByOutputType, T['by']> &
|
||||
{
|
||||
[P in ((keyof T) & (keyof Stock_viewGroupByOutputType))]: P extends '_count'
|
||||
? T[P] extends boolean
|
||||
? number
|
||||
: Prisma.GetScalarType<T[P], Stock_viewGroupByOutputType[P]>
|
||||
: Prisma.GetScalarType<T[P], Stock_viewGroupByOutputType[P]>
|
||||
}
|
||||
>
|
||||
>
|
||||
|
||||
|
||||
|
||||
export type stock_viewWhereInput = {
|
||||
AND?: Prisma.stock_viewWhereInput | Prisma.stock_viewWhereInput[]
|
||||
OR?: Prisma.stock_viewWhereInput[]
|
||||
NOT?: Prisma.stock_viewWhereInput | Prisma.stock_viewWhereInput[]
|
||||
productId?: Prisma.IntFilter<"stock_view"> | number
|
||||
inventoryId?: Prisma.IntFilter<"stock_view"> | number
|
||||
stock?: Prisma.DecimalNullableFilter<"stock_view"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type stock_viewOrderByWithRelationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewOrderByWithAggregationInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.stock_viewCountOrderByAggregateInput
|
||||
_avg?: Prisma.stock_viewAvgOrderByAggregateInput
|
||||
_max?: Prisma.stock_viewMaxOrderByAggregateInput
|
||||
_min?: Prisma.stock_viewMinOrderByAggregateInput
|
||||
_sum?: Prisma.stock_viewSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type stock_viewScalarWhereWithAggregatesInput = {
|
||||
AND?: Prisma.stock_viewScalarWhereWithAggregatesInput | Prisma.stock_viewScalarWhereWithAggregatesInput[]
|
||||
OR?: Prisma.stock_viewScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.stock_viewScalarWhereWithAggregatesInput | Prisma.stock_viewScalarWhereWithAggregatesInput[]
|
||||
productId?: Prisma.IntWithAggregatesFilter<"stock_view"> | number
|
||||
inventoryId?: Prisma.IntWithAggregatesFilter<"stock_view"> | number
|
||||
stock?: Prisma.DecimalNullableWithAggregatesFilter<"stock_view"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||
}
|
||||
|
||||
export type stock_viewCountOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewAvgOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewMaxOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewMinOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type stock_viewSumOrderByAggregateInput = {
|
||||
productId?: Prisma.SortOrder
|
||||
inventoryId?: Prisma.SortOrder
|
||||
stock?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type stock_viewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
stock?: boolean
|
||||
}, ExtArgs["result"]["stock_view"]>
|
||||
|
||||
|
||||
|
||||
export type stock_viewSelectScalar = {
|
||||
productId?: boolean
|
||||
inventoryId?: boolean
|
||||
stock?: boolean
|
||||
}
|
||||
|
||||
export type stock_viewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"productId" | "inventoryId" | "stock", ExtArgs["result"]["stock_view"]>
|
||||
|
||||
export type $stock_viewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "stock_view"
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
productId: number
|
||||
inventoryId: number
|
||||
stock: runtime.Decimal | null
|
||||
}, ExtArgs["result"]["stock_view"]>
|
||||
composites: {}
|
||||
}
|
||||
|
||||
export type stock_viewGetPayload<S extends boolean | null | undefined | stock_viewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$stock_viewPayload, S>
|
||||
|
||||
export type stock_viewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||||
Omit<stock_viewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||||
select?: Stock_viewCountAggregateInputType | true
|
||||
}
|
||||
|
||||
export interface stock_viewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||||
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['stock_view'], meta: { name: 'stock_view' } }
|
||||
/**
|
||||
* Find the first Stock_view 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 {stock_viewFindFirstArgs} args - Arguments to find a Stock_view
|
||||
* @example
|
||||
* // Get one Stock_view
|
||||
* const stock_view = await prisma.stock_view.findFirst({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirst<T extends stock_viewFindFirstArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_viewFindFirstArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_viewClient<runtime.Types.Result.GetResult<Prisma.$stock_viewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find the first Stock_view 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 {stock_viewFindFirstOrThrowArgs} args - Arguments to find a Stock_view
|
||||
* @example
|
||||
* // Get one Stock_view
|
||||
* const stock_view = await prisma.stock_view.findFirstOrThrow({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* }
|
||||
* })
|
||||
*/
|
||||
findFirstOrThrow<T extends stock_viewFindFirstOrThrowArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_viewFindFirstOrThrowArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.Prisma__stock_viewClient<runtime.Types.Result.GetResult<Prisma.$stock_viewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||||
|
||||
/**
|
||||
* Find zero or more Stock_views 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 {stock_viewFindManyArgs} args - Arguments to filter and select certain fields only.
|
||||
* @example
|
||||
* // Get all Stock_views
|
||||
* const stock_views = await prisma.stock_view.findMany()
|
||||
*
|
||||
* // Get first 10 Stock_views
|
||||
* const stock_views = await prisma.stock_view.findMany({ take: 10 })
|
||||
*
|
||||
* // Only select the `productId`
|
||||
* const stock_viewWithProductIdOnly = await prisma.stock_view.findMany({ select: { productId: true } })
|
||||
*
|
||||
*/
|
||||
findMany<T extends stock_viewFindManyArgs, TakeDependenciesValidator extends "take" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}, SkipDependenciesValidator extends "skip" extends Prisma.Keys<T> ? {
|
||||
orderBy: {}
|
||||
} : {}>(args?: Prisma.SelectSubset<T, stock_viewFindManyArgs<ExtArgs>> & TakeDependenciesValidator & SkipDependenciesValidator): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$stock_viewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||||
|
||||
|
||||
/**
|
||||
* Count the number of Stock_views.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_viewCountArgs} args - Arguments to filter Stock_views to count.
|
||||
* @example
|
||||
* // Count the number of Stock_views
|
||||
* const count = await prisma.stock_view.count({
|
||||
* where: {
|
||||
* // ... the filter for the Stock_views we want to count
|
||||
* }
|
||||
* })
|
||||
**/
|
||||
count<T extends stock_viewCountArgs>(
|
||||
args?: Prisma.Subset<T, stock_viewCountArgs>,
|
||||
): Prisma.PrismaPromise<
|
||||
T extends runtime.Types.Utils.Record<'select', any>
|
||||
? T['select'] extends true
|
||||
? number
|
||||
: Prisma.GetScalarType<T['select'], Stock_viewCountAggregateOutputType>
|
||||
: number
|
||||
>
|
||||
|
||||
/**
|
||||
* Allows you to perform aggregations operations on a Stock_view.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {Stock_viewAggregateArgs} 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 Stock_viewAggregateArgs>(args: Prisma.Subset<T, Stock_viewAggregateArgs>): Prisma.PrismaPromise<GetStock_viewAggregateType<T>>
|
||||
|
||||
/**
|
||||
* Group by Stock_view.
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
* @param {stock_viewGroupByArgs} 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 stock_viewGroupByArgs,
|
||||
HasSelectOrTake extends Prisma.Or<
|
||||
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||||
Prisma.Extends<'take', Prisma.Keys<T>>
|
||||
>,
|
||||
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||||
? { orderBy: stock_viewGroupByArgs['orderBy'] }
|
||||
: { orderBy?: stock_viewGroupByArgs['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, stock_viewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStock_viewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||||
/**
|
||||
* Fields of the stock_view model
|
||||
*/
|
||||
readonly fields: stock_viewFieldRefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* The delegate class that acts as a "Promise-like" for stock_view.
|
||||
* 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__stock_viewClient<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 stock_view model
|
||||
*/
|
||||
export interface stock_viewFieldRefs {
|
||||
readonly productId: Prisma.FieldRef<"stock_view", 'Int'>
|
||||
readonly inventoryId: Prisma.FieldRef<"stock_view", 'Int'>
|
||||
readonly stock: Prisma.FieldRef<"stock_view", 'Decimal'>
|
||||
}
|
||||
|
||||
|
||||
// Custom InputTypes
|
||||
/**
|
||||
* stock_view findFirst
|
||||
*/
|
||||
export type stock_viewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_view to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_views.
|
||||
*/
|
||||
distinct?: Prisma.Stock_viewScalarFieldEnum | Prisma.Stock_viewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_view findFirstOrThrow
|
||||
*/
|
||||
export type stock_viewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_view to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||||
*
|
||||
* Filter by unique combinations of stock_views.
|
||||
*/
|
||||
distinct?: Prisma.Stock_viewScalarFieldEnum | Prisma.Stock_viewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_view findMany
|
||||
*/
|
||||
export type stock_viewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which stock_views to fetch.
|
||||
*/
|
||||
where?: Prisma.stock_viewWhereInput
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||||
*
|
||||
* Determine the order of stock_views to fetch.
|
||||
*/
|
||||
orderBy?: Prisma.stock_viewOrderByWithRelationInput | Prisma.stock_viewOrderByWithRelationInput[]
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||||
*
|
||||
* Take `±n` stock_views 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` stock_views.
|
||||
*/
|
||||
skip?: number
|
||||
distinct?: Prisma.Stock_viewScalarFieldEnum | Prisma.Stock_viewScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* stock_view without action
|
||||
*/
|
||||
export type stock_viewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the stock_view
|
||||
*/
|
||||
select?: Prisma.stock_viewSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the stock_view
|
||||
*/
|
||||
omit?: Prisma.stock_viewOmit<ExtArgs> | null
|
||||
}
|
||||
Reference in New Issue
Block a user