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:
2025-12-06 17:48:10 +03:30
parent 7cb9d7d037
commit a782d61890
68 changed files with 4155 additions and 3334 deletions
+5 -5
View File
@@ -27,16 +27,16 @@ export type User = Prisma.UserModel
*
*/
export type Role = Prisma.RoleModel
/**
* Model ProductVariant
*
*/
export type ProductVariant = Prisma.ProductVariantModel
/**
* Model Product
*
*/
export type Product = Prisma.ProductModel
/**
* Model ProductInfo
*
*/
export type ProductInfo = Prisma.ProductInfoModel
/**
* Model ProductBrand
*
+5 -5
View File
@@ -47,16 +47,16 @@ export type User = Prisma.UserModel
*
*/
export type Role = Prisma.RoleModel
/**
* Model ProductVariant
*
*/
export type ProductVariant = Prisma.ProductVariantModel
/**
* Model Product
*
*/
export type Product = Prisma.ProductModel
/**
* Model ProductInfo
*
*/
export type ProductInfo = Prisma.ProductInfoModel
/**
* Model ProductBrand
*
+65 -65
View File
@@ -213,17 +213,6 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
}
export type BigIntNullableFilter<$PrismaModel = never> = {
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null
in?: bigint[] | number[] | null
notIn?: bigint[] | number[] | null
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
not?: Prisma.NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null
}
export type DecimalFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -235,27 +224,22 @@ export type DecimalFilter<$PrismaModel = never> = {
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type DecimalNullableFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type BoolFilter<$PrismaModel = never> = {
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
}
export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null
in?: bigint[] | number[] | null
notIn?: bigint[] | number[] | null
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
not?: Prisma.NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
_sum?: Prisma.NestedBigIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedBigIntNullableFilter<$PrismaModel>
_max?: Prisma.NestedBigIntNullableFilter<$PrismaModel>
}
export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -272,6 +256,22 @@ export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
}
export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
_sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
_min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
}
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
@@ -496,17 +496,6 @@ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
}
export type NestedBigIntNullableFilter<$PrismaModel = never> = {
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null
in?: bigint[] | number[] | null
notIn?: bigint[] | number[] | null
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
not?: Prisma.NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null
}
export type NestedDecimalFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -518,38 +507,22 @@ export type NestedDecimalFilter<$PrismaModel = never> = {
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type NestedDecimalNullableFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type NestedBoolFilter<$PrismaModel = never> = {
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
}
export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel> | null
in?: bigint[] | number[] | null
notIn?: bigint[] | number[] | null
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
not?: Prisma.NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
_sum?: Prisma.NestedBigIntNullableFilter<$PrismaModel>
_min?: Prisma.NestedBigIntNullableFilter<$PrismaModel>
_max?: Prisma.NestedBigIntNullableFilter<$PrismaModel>
}
export type NestedFloatNullableFilter<$PrismaModel = never> = {
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
}
export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -566,6 +539,22 @@ export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
}
export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null
lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
_avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
_sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
_min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
_max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>
}
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
@@ -590,4 +579,15 @@ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
}
export type NestedFloatNullableFilter<$PrismaModel = never> = {
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
in?: number[] | null
notIn?: number[] | null
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
}
File diff suppressed because one or more lines are too long
@@ -386,8 +386,8 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
export const ModelName = {
User: 'User',
Role: 'Role',
ProductVariant: 'ProductVariant',
Product: 'Product',
ProductInfo: 'ProductInfo',
ProductBrand: 'ProductBrand',
ProductCategory: 'ProductCategory',
Supplier: 'Supplier',
@@ -409,7 +409,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
omit: GlobalOmitOptions
}
meta: {
modelProps: "user" | "role" | "product" | "productInfo" | "productBrand" | "productCategory" | "supplier" | "customer" | "inventory" | "store"
modelProps: "user" | "role" | "productVariant" | "product" | "productBrand" | "productCategory" | "supplier" | "customer" | "inventory" | "store"
txIsolationLevel: TransactionIsolationLevel
}
model: {
@@ -545,6 +545,72 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
}
}
}
ProductVariant: {
payload: Prisma.$ProductVariantPayload<ExtArgs>
fields: Prisma.ProductVariantFieldRefs
operations: {
findUnique: {
args: Prisma.ProductVariantFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ProductVariantFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>
}
findFirst: {
args: Prisma.ProductVariantFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload> | null
}
findFirstOrThrow: {
args: Prisma.ProductVariantFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>
}
findMany: {
args: Prisma.ProductVariantFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>[]
}
create: {
args: Prisma.ProductVariantCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>
}
createMany: {
args: Prisma.ProductVariantCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.ProductVariantDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>
}
update: {
args: Prisma.ProductVariantUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>
}
deleteMany: {
args: Prisma.ProductVariantDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ProductVariantUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ProductVariantUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductVariantPayload>
}
aggregate: {
args: Prisma.ProductVariantAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateProductVariant>
}
groupBy: {
args: Prisma.ProductVariantGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ProductVariantGroupByOutputType>[]
}
count: {
args: Prisma.ProductVariantCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ProductVariantCountAggregateOutputType> | number
}
}
}
Product: {
payload: Prisma.$ProductPayload<ExtArgs>
fields: Prisma.ProductFieldRefs
@@ -611,72 +677,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
}
}
}
ProductInfo: {
payload: Prisma.$ProductInfoPayload<ExtArgs>
fields: Prisma.ProductInfoFieldRefs
operations: {
findUnique: {
args: Prisma.ProductInfoFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload> | null
}
findUniqueOrThrow: {
args: Prisma.ProductInfoFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>
}
findFirst: {
args: Prisma.ProductInfoFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload> | null
}
findFirstOrThrow: {
args: Prisma.ProductInfoFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>
}
findMany: {
args: Prisma.ProductInfoFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>[]
}
create: {
args: Prisma.ProductInfoCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>
}
createMany: {
args: Prisma.ProductInfoCreateManyArgs<ExtArgs>
result: BatchPayload
}
delete: {
args: Prisma.ProductInfoDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>
}
update: {
args: Prisma.ProductInfoUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>
}
deleteMany: {
args: Prisma.ProductInfoDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.ProductInfoUpdateManyArgs<ExtArgs>
result: BatchPayload
}
upsert: {
args: Prisma.ProductInfoUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProductInfoPayload>
}
aggregate: {
args: Prisma.ProductInfoAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateProductInfo>
}
groupBy: {
args: Prisma.ProductInfoGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ProductInfoGroupByOutputType>[]
}
count: {
args: Prisma.ProductInfoCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.ProductInfoCountAggregateOutputType> | number
}
}
}
ProductBrand: {
payload: Prisma.$ProductBrandPayload<ExtArgs>
fields: Prisma.ProductBrandFieldRefs
@@ -1137,16 +1137,15 @@ export const RoleScalarFieldEnum = {
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
export const ProductScalarFieldEnum = {
export const ProductVariantScalarFieldEnum = {
id: 'id',
name: 'name',
basePrice: 'basePrice',
salePrice: 'salePrice',
description: 'description',
sku: 'sku',
barcode: 'barcode',
imageUrl: 'imageUrl',
attachmentId: 'attachmentId',
unit: 'unit',
discount: 'discount',
quantity: 'quantity',
alertQuantity: 'alertQuantity',
isActive: 'isActive',
@@ -1154,27 +1153,26 @@ export const ProductScalarFieldEnum = {
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
productInfoId: 'productInfoId'
productId: 'productId'
} as const
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
export type ProductVariantScalarFieldEnum = (typeof ProductVariantScalarFieldEnum)[keyof typeof ProductVariantScalarFieldEnum]
export const ProductInfoScalarFieldEnum = {
export const ProductScalarFieldEnum = {
id: 'id',
name: 'name',
barcode: 'barcode',
sku: 'sku',
description: 'description',
productType: 'productType',
metaData: 'metaData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
brandId: 'brandId',
categoryId: 'categoryId',
supplierId: 'supplierId'
categoryId: 'categoryId'
} as const
export type ProductInfoScalarFieldEnum = (typeof ProductInfoScalarFieldEnum)[keyof typeof ProductInfoScalarFieldEnum]
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
export const ProductBrandScalarFieldEnum = {
@@ -1324,25 +1322,25 @@ export const RoleOrderByRelevanceFieldEnum = {
export type RoleOrderByRelevanceFieldEnum = (typeof RoleOrderByRelevanceFieldEnum)[keyof typeof RoleOrderByRelevanceFieldEnum]
export const ProductOrderByRelevanceFieldEnum = {
export const ProductVariantOrderByRelevanceFieldEnum = {
name: 'name',
description: 'description',
sku: 'sku',
barcode: 'barcode',
imageUrl: 'imageUrl',
unit: 'unit'
} as const
export type ProductOrderByRelevanceFieldEnum = (typeof ProductOrderByRelevanceFieldEnum)[keyof typeof ProductOrderByRelevanceFieldEnum]
export type ProductVariantOrderByRelevanceFieldEnum = (typeof ProductVariantOrderByRelevanceFieldEnum)[keyof typeof ProductVariantOrderByRelevanceFieldEnum]
export const ProductInfoOrderByRelevanceFieldEnum = {
export const ProductOrderByRelevanceFieldEnum = {
name: 'name',
description: 'description',
productType: 'productType'
barcode: 'barcode',
sku: 'sku',
description: 'description'
} as const
export type ProductInfoOrderByRelevanceFieldEnum = (typeof ProductInfoOrderByRelevanceFieldEnum)[keyof typeof ProductInfoOrderByRelevanceFieldEnum]
export type ProductOrderByRelevanceFieldEnum = (typeof ProductOrderByRelevanceFieldEnum)[keyof typeof ProductOrderByRelevanceFieldEnum]
export const ProductBrandOrderByRelevanceFieldEnum = {
@@ -1448,13 +1446,6 @@ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel
/**
* Reference to a field of type 'BigInt'
*/
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
/**
* Reference to a field of type 'Decimal'
*/
@@ -1572,8 +1563,8 @@ export type PrismaClientOptions = ({
export type GlobalOmitConfig = {
user?: Prisma.UserOmit
role?: Prisma.RoleOmit
productVariant?: Prisma.ProductVariantOmit
product?: Prisma.ProductOmit
productInfo?: Prisma.ProductInfoOmit
productBrand?: Prisma.ProductBrandOmit
productCategory?: Prisma.ProductCategoryOmit
supplier?: Prisma.SupplierOmit
@@ -53,8 +53,8 @@ export const AnyNull = runtime.AnyNull
export const ModelName = {
User: 'User',
Role: 'Role',
ProductVariant: 'ProductVariant',
Product: 'Product',
ProductInfo: 'ProductInfo',
ProductBrand: 'ProductBrand',
ProductCategory: 'ProductCategory',
Supplier: 'Supplier',
@@ -104,16 +104,15 @@ export const RoleScalarFieldEnum = {
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
export const ProductScalarFieldEnum = {
export const ProductVariantScalarFieldEnum = {
id: 'id',
name: 'name',
basePrice: 'basePrice',
salePrice: 'salePrice',
description: 'description',
sku: 'sku',
barcode: 'barcode',
imageUrl: 'imageUrl',
attachmentId: 'attachmentId',
unit: 'unit',
discount: 'discount',
quantity: 'quantity',
alertQuantity: 'alertQuantity',
isActive: 'isActive',
@@ -121,27 +120,26 @@ export const ProductScalarFieldEnum = {
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
productInfoId: 'productInfoId'
productId: 'productId'
} as const
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
export type ProductVariantScalarFieldEnum = (typeof ProductVariantScalarFieldEnum)[keyof typeof ProductVariantScalarFieldEnum]
export const ProductInfoScalarFieldEnum = {
export const ProductScalarFieldEnum = {
id: 'id',
name: 'name',
barcode: 'barcode',
sku: 'sku',
description: 'description',
productType: 'productType',
metaData: 'metaData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
brandId: 'brandId',
categoryId: 'categoryId',
supplierId: 'supplierId'
categoryId: 'categoryId'
} as const
export type ProductInfoScalarFieldEnum = (typeof ProductInfoScalarFieldEnum)[keyof typeof ProductInfoScalarFieldEnum]
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
export const ProductBrandScalarFieldEnum = {
@@ -291,25 +289,25 @@ export const RoleOrderByRelevanceFieldEnum = {
export type RoleOrderByRelevanceFieldEnum = (typeof RoleOrderByRelevanceFieldEnum)[keyof typeof RoleOrderByRelevanceFieldEnum]
export const ProductOrderByRelevanceFieldEnum = {
export const ProductVariantOrderByRelevanceFieldEnum = {
name: 'name',
description: 'description',
sku: 'sku',
barcode: 'barcode',
imageUrl: 'imageUrl',
unit: 'unit'
} as const
export type ProductOrderByRelevanceFieldEnum = (typeof ProductOrderByRelevanceFieldEnum)[keyof typeof ProductOrderByRelevanceFieldEnum]
export type ProductVariantOrderByRelevanceFieldEnum = (typeof ProductVariantOrderByRelevanceFieldEnum)[keyof typeof ProductVariantOrderByRelevanceFieldEnum]
export const ProductInfoOrderByRelevanceFieldEnum = {
export const ProductOrderByRelevanceFieldEnum = {
name: 'name',
description: 'description',
productType: 'productType'
barcode: 'barcode',
sku: 'sku',
description: 'description'
} as const
export type ProductInfoOrderByRelevanceFieldEnum = (typeof ProductInfoOrderByRelevanceFieldEnum)[keyof typeof ProductInfoOrderByRelevanceFieldEnum]
export type ProductOrderByRelevanceFieldEnum = (typeof ProductOrderByRelevanceFieldEnum)[keyof typeof ProductOrderByRelevanceFieldEnum]
export const ProductBrandOrderByRelevanceFieldEnum = {
+1 -1
View File
@@ -10,8 +10,8 @@
*/
export type * from './models/User.js'
export type * from './models/Role.js'
export type * from './models/ProductVariant.js'
export type * from './models/Product.js'
export type * from './models/ProductInfo.js'
export type * from './models/ProductBrand.js'
export type * from './models/ProductCategory.js'
export type * from './models/Supplier.js'
File diff suppressed because it is too large Load Diff
+45 -45
View File
@@ -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[]
}
/**
+45 -45
View File
@@ -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
+1 -207
View File
@@ -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
}