feat(statistics): implement top alert stocks, top last sales, top supplier debts, and top selling products endpoints with SQL queries
This commit is contained in:
@@ -488,6 +488,11 @@ export type CustomerUncheckedUpdateManyInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type CustomerNullableScalarRelationFilter = {
|
||||
is?: Prisma.CustomerWhereInput | null
|
||||
isNot?: Prisma.CustomerWhereInput | null
|
||||
}
|
||||
|
||||
export type CustomerOrderByRelevanceInput = {
|
||||
fields: Prisma.CustomerOrderByRelevanceFieldEnum | Prisma.CustomerOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -550,26 +555,18 @@ 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 = {
|
||||
export type CustomerUpdateOneWithoutOrdersNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutOrdersInput
|
||||
disconnect?: Prisma.CustomerWhereInput | boolean
|
||||
delete?: Prisma.CustomerWhereInput | boolean
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutOrdersInput, Prisma.CustomerUpdateWithoutOrdersInput>, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user