feat: add product variant management functionality
- Implemented CreateProductVariantDto and UpdateProductVariantDto for product variant data transfer. - Developed ProductVariantsController to handle CRUD operations for product variants. - Created ProductVariantsService to interact with the database using Prisma. - Added ProductVariantsModule to encapsulate the product variant feature. - Included response mapping for consistent API responses.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -232,7 +232,7 @@ export type ProductBrandWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductBrand"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductBrand"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductBrand"> | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoListRelationFilter
|
||||
products?: Prisma.ProductListRelationFilter
|
||||
}
|
||||
|
||||
export type ProductBrandOrderByWithRelationInput = {
|
||||
@@ -243,7 +243,7 @@ export type ProductBrandOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productInfo?: Prisma.ProductInfoOrderByRelationAggregateInput
|
||||
products?: Prisma.ProductOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.ProductBrandOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ export type ProductBrandWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductBrand"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductBrand"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductBrand"> | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoListRelationFilter
|
||||
products?: Prisma.ProductListRelationFilter
|
||||
}, "id">
|
||||
|
||||
export type ProductBrandOrderByWithAggregationInput = {
|
||||
@@ -296,7 +296,7 @@ export type ProductBrandCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productInfo?: Prisma.ProductInfoCreateNestedManyWithoutBrandInput
|
||||
products?: Prisma.ProductCreateNestedManyWithoutBrandInput
|
||||
}
|
||||
|
||||
export type ProductBrandUncheckedCreateInput = {
|
||||
@@ -307,7 +307,7 @@ export type ProductBrandUncheckedCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUncheckedCreateNestedManyWithoutBrandInput
|
||||
products?: Prisma.ProductUncheckedCreateNestedManyWithoutBrandInput
|
||||
}
|
||||
|
||||
export type ProductBrandUpdateInput = {
|
||||
@@ -317,7 +317,7 @@ export type ProductBrandUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUpdateManyWithoutBrandNestedInput
|
||||
products?: Prisma.ProductUpdateManyWithoutBrandNestedInput
|
||||
}
|
||||
|
||||
export type ProductBrandUncheckedUpdateInput = {
|
||||
@@ -328,7 +328,7 @@ export type ProductBrandUncheckedUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUncheckedUpdateManyWithoutBrandNestedInput
|
||||
products?: Prisma.ProductUncheckedUpdateManyWithoutBrandNestedInput
|
||||
}
|
||||
|
||||
export type ProductBrandCreateManyInput = {
|
||||
@@ -409,23 +409,23 @@ export type ProductBrandSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ProductBrandCreateNestedOneWithoutProductInfoInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductInfoInput, Prisma.ProductBrandUncheckedCreateWithoutProductInfoInput>
|
||||
connectOrCreate?: Prisma.ProductBrandCreateOrConnectWithoutProductInfoInput
|
||||
export type ProductBrandCreateNestedOneWithoutProductsInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductsInput, Prisma.ProductBrandUncheckedCreateWithoutProductsInput>
|
||||
connectOrCreate?: Prisma.ProductBrandCreateOrConnectWithoutProductsInput
|
||||
connect?: Prisma.ProductBrandWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ProductBrandUpdateOneWithoutProductInfoNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductInfoInput, Prisma.ProductBrandUncheckedCreateWithoutProductInfoInput>
|
||||
connectOrCreate?: Prisma.ProductBrandCreateOrConnectWithoutProductInfoInput
|
||||
upsert?: Prisma.ProductBrandUpsertWithoutProductInfoInput
|
||||
export type ProductBrandUpdateOneWithoutProductsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductsInput, Prisma.ProductBrandUncheckedCreateWithoutProductsInput>
|
||||
connectOrCreate?: Prisma.ProductBrandCreateOrConnectWithoutProductsInput
|
||||
upsert?: Prisma.ProductBrandUpsertWithoutProductsInput
|
||||
disconnect?: Prisma.ProductBrandWhereInput | boolean
|
||||
delete?: Prisma.ProductBrandWhereInput | boolean
|
||||
connect?: Prisma.ProductBrandWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductBrandUpdateToOneWithWhereWithoutProductInfoInput, Prisma.ProductBrandUpdateWithoutProductInfoInput>, Prisma.ProductBrandUncheckedUpdateWithoutProductInfoInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductBrandUpdateToOneWithWhereWithoutProductsInput, Prisma.ProductBrandUpdateWithoutProductsInput>, Prisma.ProductBrandUncheckedUpdateWithoutProductsInput>
|
||||
}
|
||||
|
||||
export type ProductBrandCreateWithoutProductInfoInput = {
|
||||
export type ProductBrandCreateWithoutProductsInput = {
|
||||
name: string
|
||||
description?: string | null
|
||||
imageUrl?: string | null
|
||||
@@ -434,7 +434,7 @@ export type ProductBrandCreateWithoutProductInfoInput = {
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type ProductBrandUncheckedCreateWithoutProductInfoInput = {
|
||||
export type ProductBrandUncheckedCreateWithoutProductsInput = {
|
||||
id?: number
|
||||
name: string
|
||||
description?: string | null
|
||||
@@ -444,23 +444,23 @@ export type ProductBrandUncheckedCreateWithoutProductInfoInput = {
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type ProductBrandCreateOrConnectWithoutProductInfoInput = {
|
||||
export type ProductBrandCreateOrConnectWithoutProductsInput = {
|
||||
where: Prisma.ProductBrandWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductInfoInput, Prisma.ProductBrandUncheckedCreateWithoutProductInfoInput>
|
||||
create: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductsInput, Prisma.ProductBrandUncheckedCreateWithoutProductsInput>
|
||||
}
|
||||
|
||||
export type ProductBrandUpsertWithoutProductInfoInput = {
|
||||
update: Prisma.XOR<Prisma.ProductBrandUpdateWithoutProductInfoInput, Prisma.ProductBrandUncheckedUpdateWithoutProductInfoInput>
|
||||
create: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductInfoInput, Prisma.ProductBrandUncheckedCreateWithoutProductInfoInput>
|
||||
export type ProductBrandUpsertWithoutProductsInput = {
|
||||
update: Prisma.XOR<Prisma.ProductBrandUpdateWithoutProductsInput, Prisma.ProductBrandUncheckedUpdateWithoutProductsInput>
|
||||
create: Prisma.XOR<Prisma.ProductBrandCreateWithoutProductsInput, Prisma.ProductBrandUncheckedCreateWithoutProductsInput>
|
||||
where?: Prisma.ProductBrandWhereInput
|
||||
}
|
||||
|
||||
export type ProductBrandUpdateToOneWithWhereWithoutProductInfoInput = {
|
||||
export type ProductBrandUpdateToOneWithWhereWithoutProductsInput = {
|
||||
where?: Prisma.ProductBrandWhereInput
|
||||
data: Prisma.XOR<Prisma.ProductBrandUpdateWithoutProductInfoInput, Prisma.ProductBrandUncheckedUpdateWithoutProductInfoInput>
|
||||
data: Prisma.XOR<Prisma.ProductBrandUpdateWithoutProductsInput, Prisma.ProductBrandUncheckedUpdateWithoutProductsInput>
|
||||
}
|
||||
|
||||
export type ProductBrandUpdateWithoutProductInfoInput = {
|
||||
export type ProductBrandUpdateWithoutProductsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -469,7 +469,7 @@ export type ProductBrandUpdateWithoutProductInfoInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type ProductBrandUncheckedUpdateWithoutProductInfoInput = {
|
||||
export type ProductBrandUncheckedUpdateWithoutProductsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -485,11 +485,11 @@ export type ProductBrandUncheckedUpdateWithoutProductInfoInput = {
|
||||
*/
|
||||
|
||||
export type ProductBrandCountOutputType = {
|
||||
productInfo: number
|
||||
products: number
|
||||
}
|
||||
|
||||
export type ProductBrandCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productInfo?: boolean | ProductBrandCountOutputTypeCountProductInfoArgs
|
||||
products?: boolean | ProductBrandCountOutputTypeCountProductsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -505,8 +505,8 @@ export type ProductBrandCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types
|
||||
/**
|
||||
* ProductBrandCountOutputType without action
|
||||
*/
|
||||
export type ProductBrandCountOutputTypeCountProductInfoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductInfoWhereInput
|
||||
export type ProductBrandCountOutputTypeCountProductsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductWhereInput
|
||||
}
|
||||
|
||||
|
||||
@@ -518,7 +518,7 @@ export type ProductBrandSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
productInfo?: boolean | Prisma.ProductBrand$productInfoArgs<ExtArgs>
|
||||
products?: boolean | Prisma.ProductBrand$productsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProductBrandCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["productBrand"]>
|
||||
|
||||
@@ -536,14 +536,14 @@ export type ProductBrandSelectScalar = {
|
||||
|
||||
export type ProductBrandOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageUrl" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["productBrand"]>
|
||||
export type ProductBrandInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productInfo?: boolean | Prisma.ProductBrand$productInfoArgs<ExtArgs>
|
||||
products?: boolean | Prisma.ProductBrand$productsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProductBrandCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $ProductBrandPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "ProductBrand"
|
||||
objects: {
|
||||
productInfo: Prisma.$ProductInfoPayload<ExtArgs>[]
|
||||
products: Prisma.$ProductPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -893,7 +893,7 @@ readonly fields: ProductBrandFieldRefs;
|
||||
*/
|
||||
export interface Prisma__ProductBrandClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
productInfo<T extends Prisma.ProductBrand$productInfoArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductBrand$productInfoArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductInfoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
products<T extends Prisma.ProductBrand$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductBrand$productsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<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.
|
||||
@@ -1273,27 +1273,27 @@ export type ProductBrandDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.
|
||||
}
|
||||
|
||||
/**
|
||||
* ProductBrand.productInfo
|
||||
* ProductBrand.products
|
||||
*/
|
||||
export type ProductBrand$productInfoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
export type ProductBrand$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ProductInfo
|
||||
* Select specific fields to fetch from the Product
|
||||
*/
|
||||
select?: Prisma.ProductInfoSelect<ExtArgs> | null
|
||||
select?: Prisma.ProductSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ProductInfo
|
||||
* Omit specific fields from the Product
|
||||
*/
|
||||
omit?: Prisma.ProductInfoOmit<ExtArgs> | null
|
||||
omit?: Prisma.ProductOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ProductInfoInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductInfoWhereInput
|
||||
orderBy?: Prisma.ProductInfoOrderByWithRelationInput | Prisma.ProductInfoOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductInfoWhereUniqueInput
|
||||
include?: Prisma.ProductInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductWhereInput
|
||||
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ProductInfoScalarFieldEnum | Prisma.ProductInfoScalarFieldEnum[]
|
||||
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -232,7 +232,7 @@ export type ProductCategoryWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoListRelationFilter
|
||||
products?: Prisma.ProductListRelationFilter
|
||||
}
|
||||
|
||||
export type ProductCategoryOrderByWithRelationInput = {
|
||||
@@ -243,7 +243,7 @@ export type ProductCategoryOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productInfo?: Prisma.ProductInfoOrderByRelationAggregateInput
|
||||
products?: Prisma.ProductOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.ProductCategoryOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ export type ProductCategoryWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoListRelationFilter
|
||||
products?: Prisma.ProductListRelationFilter
|
||||
}, "id">
|
||||
|
||||
export type ProductCategoryOrderByWithAggregationInput = {
|
||||
@@ -296,7 +296,7 @@ export type ProductCategoryCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productInfo?: Prisma.ProductInfoCreateNestedManyWithoutCategoryInput
|
||||
products?: Prisma.ProductCreateNestedManyWithoutCategoryInput
|
||||
}
|
||||
|
||||
export type ProductCategoryUncheckedCreateInput = {
|
||||
@@ -307,7 +307,7 @@ export type ProductCategoryUncheckedCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUncheckedCreateNestedManyWithoutCategoryInput
|
||||
products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoryInput
|
||||
}
|
||||
|
||||
export type ProductCategoryUpdateInput = {
|
||||
@@ -317,7 +317,7 @@ export type ProductCategoryUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUpdateManyWithoutCategoryNestedInput
|
||||
products?: Prisma.ProductUpdateManyWithoutCategoryNestedInput
|
||||
}
|
||||
|
||||
export type ProductCategoryUncheckedUpdateInput = {
|
||||
@@ -328,7 +328,7 @@ export type ProductCategoryUncheckedUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUncheckedUpdateManyWithoutCategoryNestedInput
|
||||
products?: Prisma.ProductUncheckedUpdateManyWithoutCategoryNestedInput
|
||||
}
|
||||
|
||||
export type ProductCategoryCreateManyInput = {
|
||||
@@ -409,23 +409,23 @@ export type ProductCategorySumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ProductCategoryCreateNestedOneWithoutProductInfoInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInfoInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInfoInput>
|
||||
connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductInfoInput
|
||||
export type ProductCategoryCreateNestedOneWithoutProductsInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
|
||||
connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput
|
||||
connect?: Prisma.ProductCategoryWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ProductCategoryUpdateOneWithoutProductInfoNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInfoInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInfoInput>
|
||||
connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductInfoInput
|
||||
upsert?: Prisma.ProductCategoryUpsertWithoutProductInfoInput
|
||||
export type ProductCategoryUpdateOneWithoutProductsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
|
||||
connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput
|
||||
upsert?: Prisma.ProductCategoryUpsertWithoutProductsInput
|
||||
disconnect?: Prisma.ProductCategoryWhereInput | boolean
|
||||
delete?: Prisma.ProductCategoryWhereInput | boolean
|
||||
connect?: Prisma.ProductCategoryWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductCategoryUpdateToOneWithWhereWithoutProductInfoInput, Prisma.ProductCategoryUpdateWithoutProductInfoInput>, Prisma.ProductCategoryUncheckedUpdateWithoutProductInfoInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductCategoryUpdateToOneWithWhereWithoutProductsInput, Prisma.ProductCategoryUpdateWithoutProductsInput>, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>
|
||||
}
|
||||
|
||||
export type ProductCategoryCreateWithoutProductInfoInput = {
|
||||
export type ProductCategoryCreateWithoutProductsInput = {
|
||||
name: string
|
||||
description?: string | null
|
||||
imageUrl?: string | null
|
||||
@@ -434,7 +434,7 @@ export type ProductCategoryCreateWithoutProductInfoInput = {
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type ProductCategoryUncheckedCreateWithoutProductInfoInput = {
|
||||
export type ProductCategoryUncheckedCreateWithoutProductsInput = {
|
||||
id?: number
|
||||
name: string
|
||||
description?: string | null
|
||||
@@ -444,23 +444,23 @@ export type ProductCategoryUncheckedCreateWithoutProductInfoInput = {
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type ProductCategoryCreateOrConnectWithoutProductInfoInput = {
|
||||
export type ProductCategoryCreateOrConnectWithoutProductsInput = {
|
||||
where: Prisma.ProductCategoryWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInfoInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInfoInput>
|
||||
create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
|
||||
}
|
||||
|
||||
export type ProductCategoryUpsertWithoutProductInfoInput = {
|
||||
update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductInfoInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductInfoInput>
|
||||
create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductInfoInput, Prisma.ProductCategoryUncheckedCreateWithoutProductInfoInput>
|
||||
export type ProductCategoryUpsertWithoutProductsInput = {
|
||||
update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductsInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>
|
||||
create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
|
||||
where?: Prisma.ProductCategoryWhereInput
|
||||
}
|
||||
|
||||
export type ProductCategoryUpdateToOneWithWhereWithoutProductInfoInput = {
|
||||
export type ProductCategoryUpdateToOneWithWhereWithoutProductsInput = {
|
||||
where?: Prisma.ProductCategoryWhereInput
|
||||
data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductInfoInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductInfoInput>
|
||||
data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductsInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>
|
||||
}
|
||||
|
||||
export type ProductCategoryUpdateWithoutProductInfoInput = {
|
||||
export type ProductCategoryUpdateWithoutProductsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -469,7 +469,7 @@ export type ProductCategoryUpdateWithoutProductInfoInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type ProductCategoryUncheckedUpdateWithoutProductInfoInput = {
|
||||
export type ProductCategoryUncheckedUpdateWithoutProductsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -485,11 +485,11 @@ export type ProductCategoryUncheckedUpdateWithoutProductInfoInput = {
|
||||
*/
|
||||
|
||||
export type ProductCategoryCountOutputType = {
|
||||
productInfo: number
|
||||
products: number
|
||||
}
|
||||
|
||||
export type ProductCategoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productInfo?: boolean | ProductCategoryCountOutputTypeCountProductInfoArgs
|
||||
products?: boolean | ProductCategoryCountOutputTypeCountProductsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -505,8 +505,8 @@ export type ProductCategoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Ty
|
||||
/**
|
||||
* ProductCategoryCountOutputType without action
|
||||
*/
|
||||
export type ProductCategoryCountOutputTypeCountProductInfoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductInfoWhereInput
|
||||
export type ProductCategoryCountOutputTypeCountProductsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductWhereInput
|
||||
}
|
||||
|
||||
|
||||
@@ -518,7 +518,7 @@ export type ProductCategorySelect<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
productInfo?: boolean | Prisma.ProductCategory$productInfoArgs<ExtArgs>
|
||||
products?: boolean | Prisma.ProductCategory$productsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProductCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["productCategory"]>
|
||||
|
||||
@@ -536,14 +536,14 @@ export type ProductCategorySelectScalar = {
|
||||
|
||||
export type ProductCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageUrl" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["productCategory"]>
|
||||
export type ProductCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productInfo?: boolean | Prisma.ProductCategory$productInfoArgs<ExtArgs>
|
||||
products?: boolean | Prisma.ProductCategory$productsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ProductCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $ProductCategoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "ProductCategory"
|
||||
objects: {
|
||||
productInfo: Prisma.$ProductInfoPayload<ExtArgs>[]
|
||||
products: Prisma.$ProductPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -893,7 +893,7 @@ readonly fields: ProductCategoryFieldRefs;
|
||||
*/
|
||||
export interface Prisma__ProductCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
productInfo<T extends Prisma.ProductCategory$productInfoArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$productInfoArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductInfoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
products<T extends Prisma.ProductCategory$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$productsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<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.
|
||||
@@ -1273,27 +1273,27 @@ export type ProductCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensio
|
||||
}
|
||||
|
||||
/**
|
||||
* ProductCategory.productInfo
|
||||
* ProductCategory.products
|
||||
*/
|
||||
export type ProductCategory$productInfoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
export type ProductCategory$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ProductInfo
|
||||
* Select specific fields to fetch from the Product
|
||||
*/
|
||||
select?: Prisma.ProductInfoSelect<ExtArgs> | null
|
||||
select?: Prisma.ProductSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ProductInfo
|
||||
* Omit specific fields from the Product
|
||||
*/
|
||||
omit?: Prisma.ProductInfoOmit<ExtArgs> | null
|
||||
omit?: Prisma.ProductOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ProductInfoInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductInfoWhereInput
|
||||
orderBy?: Prisma.ProductInfoOrderByWithRelationInput | Prisma.ProductInfoOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductInfoWhereUniqueInput
|
||||
include?: Prisma.ProductInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductWhereInput
|
||||
orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ProductInfoScalarFieldEnum | Prisma.ProductInfoScalarFieldEnum[]
|
||||
distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -280,7 +280,6 @@ export type SupplierWhereInput = {
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoListRelationFilter
|
||||
}
|
||||
|
||||
export type SupplierOrderByWithRelationInput = {
|
||||
@@ -297,7 +296,6 @@ export type SupplierOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
productInfo?: Prisma.ProductInfoOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SupplierOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -318,7 +316,6 @@ export type SupplierWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
updatedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Supplier"> | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type SupplierOrderByWithAggregationInput = {
|
||||
@@ -374,7 +371,6 @@ export type SupplierCreateInput = {
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
deletedAt?: Date | string | null
|
||||
productInfo?: Prisma.ProductInfoCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateInput = {
|
||||
@@ -391,7 +387,6 @@ export type SupplierUncheckedCreateInput = {
|
||||
createdAt?: Date | string | null
|
||||
updatedAt?: Date | string | null
|
||||
deletedAt?: Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUncheckedCreateNestedManyWithoutSupplierInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateInput = {
|
||||
@@ -407,7 +402,6 @@ export type SupplierUpdateInput = {
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateInput = {
|
||||
@@ -424,7 +418,6 @@ export type SupplierUncheckedUpdateInput = {
|
||||
createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
productInfo?: Prisma.ProductInfoUncheckedUpdateManyWithoutSupplierNestedInput
|
||||
}
|
||||
|
||||
export type SupplierCreateManyInput = {
|
||||
@@ -474,11 +467,6 @@ export type SupplierUncheckedUpdateManyInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type SupplierScalarRelationFilter = {
|
||||
is?: Prisma.SupplierWhereInput
|
||||
isNot?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierOrderByRelevanceInput = {
|
||||
fields: Prisma.SupplierOrderByRelevanceFieldEnum | Prisma.SupplierOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
@@ -541,127 +529,6 @@ export type SupplierSumOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SupplierCreateNestedOneWithoutProductInfoInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductInfoInput, Prisma.SupplierUncheckedCreateWithoutProductInfoInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductInfoInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateOneRequiredWithoutProductInfoNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SupplierCreateWithoutProductInfoInput, Prisma.SupplierUncheckedCreateWithoutProductInfoInput>
|
||||
connectOrCreate?: Prisma.SupplierCreateOrConnectWithoutProductInfoInput
|
||||
upsert?: Prisma.SupplierUpsertWithoutProductInfoInput
|
||||
connect?: Prisma.SupplierWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SupplierUpdateToOneWithWhereWithoutProductInfoInput, Prisma.SupplierUpdateWithoutProductInfoInput>, Prisma.SupplierUncheckedUpdateWithoutProductInfoInput>
|
||||
}
|
||||
|
||||
export type SupplierCreateWithoutProductInfoInput = {
|
||||
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 | null
|
||||
updatedAt?: Date | string | null
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type SupplierUncheckedCreateWithoutProductInfoInput = {
|
||||
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 | null
|
||||
updatedAt?: Date | string | null
|
||||
deletedAt?: Date | string | null
|
||||
}
|
||||
|
||||
export type SupplierCreateOrConnectWithoutProductInfoInput = {
|
||||
where: Prisma.SupplierWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutProductInfoInput, Prisma.SupplierUncheckedCreateWithoutProductInfoInput>
|
||||
}
|
||||
|
||||
export type SupplierUpsertWithoutProductInfoInput = {
|
||||
update: Prisma.XOR<Prisma.SupplierUpdateWithoutProductInfoInput, Prisma.SupplierUncheckedUpdateWithoutProductInfoInput>
|
||||
create: Prisma.XOR<Prisma.SupplierCreateWithoutProductInfoInput, Prisma.SupplierUncheckedCreateWithoutProductInfoInput>
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
export type SupplierUpdateToOneWithWhereWithoutProductInfoInput = {
|
||||
where?: Prisma.SupplierWhereInput
|
||||
data: Prisma.XOR<Prisma.SupplierUpdateWithoutProductInfoInput, Prisma.SupplierUncheckedUpdateWithoutProductInfoInput>
|
||||
}
|
||||
|
||||
export type SupplierUpdateWithoutProductInfoInput = {
|
||||
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.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
export type SupplierUncheckedUpdateWithoutProductInfoInput = {
|
||||
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.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type SupplierCountOutputType
|
||||
*/
|
||||
|
||||
export type SupplierCountOutputType = {
|
||||
productInfo: number
|
||||
}
|
||||
|
||||
export type SupplierCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
productInfo?: boolean | SupplierCountOutputTypeCountProductInfoArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 SupplierCountOutputTypeCountProductInfoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ProductInfoWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
@@ -678,8 +545,6 @@ export type SupplierSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
deletedAt?: boolean
|
||||
productInfo?: boolean | Prisma.Supplier$productInfoArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["supplier"]>
|
||||
|
||||
|
||||
@@ -701,16 +566,10 @@ 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> = {
|
||||
productInfo?: boolean | Prisma.Supplier$productInfoArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SupplierCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $SupplierPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Supplier"
|
||||
objects: {
|
||||
productInfo: Prisma.$ProductInfoPayload<ExtArgs>[]
|
||||
}
|
||||
objects: {}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
firstName: string
|
||||
@@ -1065,7 +924,6 @@ 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"
|
||||
productInfo<T extends Prisma.Supplier$productInfoArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Supplier$productInfoArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductInfoPayload<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.
|
||||
@@ -1124,10 +982,6 @@ 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.
|
||||
*/
|
||||
@@ -1146,10 +1000,6 @@ 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.
|
||||
*/
|
||||
@@ -1168,10 +1018,6 @@ 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.
|
||||
*/
|
||||
@@ -1220,10 +1066,6 @@ 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.
|
||||
*/
|
||||
@@ -1272,10 +1114,6 @@ 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.
|
||||
*/
|
||||
@@ -1319,10 +1157,6 @@ 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.
|
||||
*/
|
||||
@@ -1352,10 +1186,6 @@ 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.
|
||||
*/
|
||||
@@ -1396,10 +1226,6 @@ 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.
|
||||
*/
|
||||
@@ -1426,10 +1252,6 @@ 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.
|
||||
*/
|
||||
@@ -1450,30 +1272,6 @@ export type SupplierDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier.productInfo
|
||||
*/
|
||||
export type Supplier$productInfoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ProductInfo
|
||||
*/
|
||||
select?: Prisma.ProductInfoSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ProductInfo
|
||||
*/
|
||||
omit?: Prisma.ProductInfoOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ProductInfoInclude<ExtArgs> | null
|
||||
where?: Prisma.ProductInfoWhereInput
|
||||
orderBy?: Prisma.ProductInfoOrderByWithRelationInput | Prisma.ProductInfoOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ProductInfoWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ProductInfoScalarFieldEnum | Prisma.ProductInfoScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Supplier without action
|
||||
*/
|
||||
@@ -1486,8 +1284,4 @@ 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user