@sagebox-be/prisma-product 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,6 +211,11 @@ export type Category = $Result.DefaultSelection<Prisma.$CategoryPayload>
211
211
  *
212
212
  */
213
213
  export type CategoriesAttribute = $Result.DefaultSelection<Prisma.$CategoriesAttributePayload>
214
+ /**
215
+ * Model Brand
216
+ *
217
+ */
218
+ export type Brand = $Result.DefaultSelection<Prisma.$BrandPayload>
214
219
  /**
215
220
  * Model Product
216
221
  *
@@ -385,6 +390,16 @@ export class PrismaClient<
385
390
  */
386
391
  get categoriesAttribute(): Prisma.CategoriesAttributeDelegate<ExtArgs, ClientOptions>;
387
392
 
393
+ /**
394
+ * `prisma.brand`: Exposes CRUD operations for the **Brand** model.
395
+ * Example usage:
396
+ * ```ts
397
+ * // Fetch zero or more Brands
398
+ * const brands = await prisma.brand.findMany()
399
+ * ```
400
+ */
401
+ get brand(): Prisma.BrandDelegate<ExtArgs, ClientOptions>;
402
+
388
403
  /**
389
404
  * `prisma.product`: Exposes CRUD operations for the **Product** model.
390
405
  * Example usage:
@@ -877,6 +892,7 @@ export namespace Prisma {
877
892
  Attribute: 'Attribute',
878
893
  Category: 'Category',
879
894
  CategoriesAttribute: 'CategoriesAttribute',
895
+ Brand: 'Brand',
880
896
  Product: 'Product',
881
897
  ProductSyncOutbox: 'ProductSyncOutbox',
882
898
  InventoryOutbox: 'InventoryOutbox',
@@ -900,7 +916,7 @@ export namespace Prisma {
900
916
  omit: GlobalOmitOptions
901
917
  }
902
918
  meta: {
903
- modelProps: "attribute" | "category" | "categoriesAttribute" | "product" | "productSyncOutbox" | "inventoryOutbox" | "attributeValue" | "sku"
919
+ modelProps: "attribute" | "category" | "categoriesAttribute" | "brand" | "product" | "productSyncOutbox" | "inventoryOutbox" | "attributeValue" | "sku"
904
920
  txIsolationLevel: Prisma.TransactionIsolationLevel
905
921
  }
906
922
  model: {
@@ -1126,6 +1142,80 @@ export namespace Prisma {
1126
1142
  }
1127
1143
  }
1128
1144
  }
1145
+ Brand: {
1146
+ payload: Prisma.$BrandPayload<ExtArgs>
1147
+ fields: Prisma.BrandFieldRefs
1148
+ operations: {
1149
+ findUnique: {
1150
+ args: Prisma.BrandFindUniqueArgs<ExtArgs>
1151
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload> | null
1152
+ }
1153
+ findUniqueOrThrow: {
1154
+ args: Prisma.BrandFindUniqueOrThrowArgs<ExtArgs>
1155
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>
1156
+ }
1157
+ findFirst: {
1158
+ args: Prisma.BrandFindFirstArgs<ExtArgs>
1159
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload> | null
1160
+ }
1161
+ findFirstOrThrow: {
1162
+ args: Prisma.BrandFindFirstOrThrowArgs<ExtArgs>
1163
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>
1164
+ }
1165
+ findMany: {
1166
+ args: Prisma.BrandFindManyArgs<ExtArgs>
1167
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>[]
1168
+ }
1169
+ create: {
1170
+ args: Prisma.BrandCreateArgs<ExtArgs>
1171
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>
1172
+ }
1173
+ createMany: {
1174
+ args: Prisma.BrandCreateManyArgs<ExtArgs>
1175
+ result: BatchPayload
1176
+ }
1177
+ createManyAndReturn: {
1178
+ args: Prisma.BrandCreateManyAndReturnArgs<ExtArgs>
1179
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>[]
1180
+ }
1181
+ delete: {
1182
+ args: Prisma.BrandDeleteArgs<ExtArgs>
1183
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>
1184
+ }
1185
+ update: {
1186
+ args: Prisma.BrandUpdateArgs<ExtArgs>
1187
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>
1188
+ }
1189
+ deleteMany: {
1190
+ args: Prisma.BrandDeleteManyArgs<ExtArgs>
1191
+ result: BatchPayload
1192
+ }
1193
+ updateMany: {
1194
+ args: Prisma.BrandUpdateManyArgs<ExtArgs>
1195
+ result: BatchPayload
1196
+ }
1197
+ updateManyAndReturn: {
1198
+ args: Prisma.BrandUpdateManyAndReturnArgs<ExtArgs>
1199
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>[]
1200
+ }
1201
+ upsert: {
1202
+ args: Prisma.BrandUpsertArgs<ExtArgs>
1203
+ result: $Utils.PayloadToResult<Prisma.$BrandPayload>
1204
+ }
1205
+ aggregate: {
1206
+ args: Prisma.BrandAggregateArgs<ExtArgs>
1207
+ result: $Utils.Optional<AggregateBrand>
1208
+ }
1209
+ groupBy: {
1210
+ args: Prisma.BrandGroupByArgs<ExtArgs>
1211
+ result: $Utils.Optional<BrandGroupByOutputType>[]
1212
+ }
1213
+ count: {
1214
+ args: Prisma.BrandCountArgs<ExtArgs>
1215
+ result: $Utils.Optional<BrandCountAggregateOutputType> | number
1216
+ }
1217
+ }
1218
+ }
1129
1219
  Product: {
1130
1220
  payload: Prisma.$ProductPayload<ExtArgs>
1131
1221
  fields: Prisma.ProductFieldRefs
@@ -1595,6 +1685,7 @@ export namespace Prisma {
1595
1685
  attribute?: AttributeOmit
1596
1686
  category?: CategoryOmit
1597
1687
  categoriesAttribute?: CategoriesAttributeOmit
1688
+ brand?: BrandOmit
1598
1689
  product?: ProductOmit
1599
1690
  productSyncOutbox?: ProductSyncOutboxOmit
1600
1691
  inventoryOutbox?: InventoryOutboxOmit
@@ -1746,6 +1837,37 @@ export namespace Prisma {
1746
1837
  }
1747
1838
 
1748
1839
 
1840
+ /**
1841
+ * Count Type BrandCountOutputType
1842
+ */
1843
+
1844
+ export type BrandCountOutputType = {
1845
+ products: number
1846
+ }
1847
+
1848
+ export type BrandCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1849
+ products?: boolean | BrandCountOutputTypeCountProductsArgs
1850
+ }
1851
+
1852
+ // Custom InputTypes
1853
+ /**
1854
+ * BrandCountOutputType without action
1855
+ */
1856
+ export type BrandCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1857
+ /**
1858
+ * Select specific fields to fetch from the BrandCountOutputType
1859
+ */
1860
+ select?: BrandCountOutputTypeSelect<ExtArgs> | null
1861
+ }
1862
+
1863
+ /**
1864
+ * BrandCountOutputType without action
1865
+ */
1866
+ export type BrandCountOutputTypeCountProductsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1867
+ where?: ProductWhereInput
1868
+ }
1869
+
1870
+
1749
1871
  /**
1750
1872
  * Count Type ProductCountOutputType
1751
1873
  */
@@ -5174,21 +5296,1091 @@ export namespace Prisma {
5174
5296
  }
5175
5297
 
5176
5298
  /**
5177
- * CategoriesAttribute without action
5299
+ * CategoriesAttribute without action
5300
+ */
5301
+ export type CategoriesAttributeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5302
+ /**
5303
+ * Select specific fields to fetch from the CategoriesAttribute
5304
+ */
5305
+ select?: CategoriesAttributeSelect<ExtArgs> | null
5306
+ /**
5307
+ * Omit specific fields from the CategoriesAttribute
5308
+ */
5309
+ omit?: CategoriesAttributeOmit<ExtArgs> | null
5310
+ /**
5311
+ * Choose, which related nodes to fetch as well
5312
+ */
5313
+ include?: CategoriesAttributeInclude<ExtArgs> | null
5314
+ }
5315
+
5316
+
5317
+ /**
5318
+ * Model Brand
5319
+ */
5320
+
5321
+ export type AggregateBrand = {
5322
+ _count: BrandCountAggregateOutputType | null
5323
+ _min: BrandMinAggregateOutputType | null
5324
+ _max: BrandMaxAggregateOutputType | null
5325
+ }
5326
+
5327
+ export type BrandMinAggregateOutputType = {
5328
+ id: string | null
5329
+ code: string | null
5330
+ name: string | null
5331
+ createdAt: Date | null
5332
+ updatedAt: Date | null
5333
+ }
5334
+
5335
+ export type BrandMaxAggregateOutputType = {
5336
+ id: string | null
5337
+ code: string | null
5338
+ name: string | null
5339
+ createdAt: Date | null
5340
+ updatedAt: Date | null
5341
+ }
5342
+
5343
+ export type BrandCountAggregateOutputType = {
5344
+ id: number
5345
+ code: number
5346
+ name: number
5347
+ createdAt: number
5348
+ updatedAt: number
5349
+ _all: number
5350
+ }
5351
+
5352
+
5353
+ export type BrandMinAggregateInputType = {
5354
+ id?: true
5355
+ code?: true
5356
+ name?: true
5357
+ createdAt?: true
5358
+ updatedAt?: true
5359
+ }
5360
+
5361
+ export type BrandMaxAggregateInputType = {
5362
+ id?: true
5363
+ code?: true
5364
+ name?: true
5365
+ createdAt?: true
5366
+ updatedAt?: true
5367
+ }
5368
+
5369
+ export type BrandCountAggregateInputType = {
5370
+ id?: true
5371
+ code?: true
5372
+ name?: true
5373
+ createdAt?: true
5374
+ updatedAt?: true
5375
+ _all?: true
5376
+ }
5377
+
5378
+ export type BrandAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5379
+ /**
5380
+ * Filter which Brand to aggregate.
5381
+ */
5382
+ where?: BrandWhereInput
5383
+ /**
5384
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
5385
+ *
5386
+ * Determine the order of Brands to fetch.
5387
+ */
5388
+ orderBy?: BrandOrderByWithRelationInput | BrandOrderByWithRelationInput[]
5389
+ /**
5390
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
5391
+ *
5392
+ * Sets the start position
5393
+ */
5394
+ cursor?: BrandWhereUniqueInput
5395
+ /**
5396
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5397
+ *
5398
+ * Take `±n` Brands from the position of the cursor.
5399
+ */
5400
+ take?: number
5401
+ /**
5402
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5403
+ *
5404
+ * Skip the first `n` Brands.
5405
+ */
5406
+ skip?: number
5407
+ /**
5408
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5409
+ *
5410
+ * Count returned Brands
5411
+ **/
5412
+ _count?: true | BrandCountAggregateInputType
5413
+ /**
5414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5415
+ *
5416
+ * Select which fields to find the minimum value
5417
+ **/
5418
+ _min?: BrandMinAggregateInputType
5419
+ /**
5420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
5421
+ *
5422
+ * Select which fields to find the maximum value
5423
+ **/
5424
+ _max?: BrandMaxAggregateInputType
5425
+ }
5426
+
5427
+ export type GetBrandAggregateType<T extends BrandAggregateArgs> = {
5428
+ [P in keyof T & keyof AggregateBrand]: P extends '_count' | 'count'
5429
+ ? T[P] extends true
5430
+ ? number
5431
+ : GetScalarType<T[P], AggregateBrand[P]>
5432
+ : GetScalarType<T[P], AggregateBrand[P]>
5433
+ }
5434
+
5435
+
5436
+
5437
+
5438
+ export type BrandGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5439
+ where?: BrandWhereInput
5440
+ orderBy?: BrandOrderByWithAggregationInput | BrandOrderByWithAggregationInput[]
5441
+ by: BrandScalarFieldEnum[] | BrandScalarFieldEnum
5442
+ having?: BrandScalarWhereWithAggregatesInput
5443
+ take?: number
5444
+ skip?: number
5445
+ _count?: BrandCountAggregateInputType | true
5446
+ _min?: BrandMinAggregateInputType
5447
+ _max?: BrandMaxAggregateInputType
5448
+ }
5449
+
5450
+ export type BrandGroupByOutputType = {
5451
+ id: string
5452
+ code: string
5453
+ name: string
5454
+ createdAt: Date
5455
+ updatedAt: Date
5456
+ _count: BrandCountAggregateOutputType | null
5457
+ _min: BrandMinAggregateOutputType | null
5458
+ _max: BrandMaxAggregateOutputType | null
5459
+ }
5460
+
5461
+ type GetBrandGroupByPayload<T extends BrandGroupByArgs> = Prisma.PrismaPromise<
5462
+ Array<
5463
+ PickEnumerable<BrandGroupByOutputType, T['by']> &
5464
+ {
5465
+ [P in ((keyof T) & (keyof BrandGroupByOutputType))]: P extends '_count'
5466
+ ? T[P] extends boolean
5467
+ ? number
5468
+ : GetScalarType<T[P], BrandGroupByOutputType[P]>
5469
+ : GetScalarType<T[P], BrandGroupByOutputType[P]>
5470
+ }
5471
+ >
5472
+ >
5473
+
5474
+
5475
+ export type BrandSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5476
+ id?: boolean
5477
+ code?: boolean
5478
+ name?: boolean
5479
+ createdAt?: boolean
5480
+ updatedAt?: boolean
5481
+ products?: boolean | Brand$productsArgs<ExtArgs>
5482
+ _count?: boolean | BrandCountOutputTypeDefaultArgs<ExtArgs>
5483
+ }, ExtArgs["result"]["brand"]>
5484
+
5485
+ export type BrandSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5486
+ id?: boolean
5487
+ code?: boolean
5488
+ name?: boolean
5489
+ createdAt?: boolean
5490
+ updatedAt?: boolean
5491
+ }, ExtArgs["result"]["brand"]>
5492
+
5493
+ export type BrandSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5494
+ id?: boolean
5495
+ code?: boolean
5496
+ name?: boolean
5497
+ createdAt?: boolean
5498
+ updatedAt?: boolean
5499
+ }, ExtArgs["result"]["brand"]>
5500
+
5501
+ export type BrandSelectScalar = {
5502
+ id?: boolean
5503
+ code?: boolean
5504
+ name?: boolean
5505
+ createdAt?: boolean
5506
+ updatedAt?: boolean
5507
+ }
5508
+
5509
+ export type BrandOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "code" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["brand"]>
5510
+ export type BrandInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5511
+ products?: boolean | Brand$productsArgs<ExtArgs>
5512
+ _count?: boolean | BrandCountOutputTypeDefaultArgs<ExtArgs>
5513
+ }
5514
+ export type BrandIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
5515
+ export type BrandIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
5516
+
5517
+ export type $BrandPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5518
+ name: "Brand"
5519
+ objects: {
5520
+ products: Prisma.$ProductPayload<ExtArgs>[]
5521
+ }
5522
+ scalars: $Extensions.GetPayloadResult<{
5523
+ id: string
5524
+ code: string
5525
+ name: string
5526
+ createdAt: Date
5527
+ updatedAt: Date
5528
+ }, ExtArgs["result"]["brand"]>
5529
+ composites: {}
5530
+ }
5531
+
5532
+ type BrandGetPayload<S extends boolean | null | undefined | BrandDefaultArgs> = $Result.GetResult<Prisma.$BrandPayload, S>
5533
+
5534
+ type BrandCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
5535
+ Omit<BrandFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
5536
+ select?: BrandCountAggregateInputType | true
5537
+ }
5538
+
5539
+ export interface BrandDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
5540
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Brand'], meta: { name: 'Brand' } }
5541
+ /**
5542
+ * Find zero or one Brand that matches the filter.
5543
+ * @param {BrandFindUniqueArgs} args - Arguments to find a Brand
5544
+ * @example
5545
+ * // Get one Brand
5546
+ * const brand = await prisma.brand.findUnique({
5547
+ * where: {
5548
+ * // ... provide filter here
5549
+ * }
5550
+ * })
5551
+ */
5552
+ findUnique<T extends BrandFindUniqueArgs>(args: SelectSubset<T, BrandFindUniqueArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
5553
+
5554
+ /**
5555
+ * Find one Brand that matches the filter or throw an error with `error.code='P2025'`
5556
+ * if no matches were found.
5557
+ * @param {BrandFindUniqueOrThrowArgs} args - Arguments to find a Brand
5558
+ * @example
5559
+ * // Get one Brand
5560
+ * const brand = await prisma.brand.findUniqueOrThrow({
5561
+ * where: {
5562
+ * // ... provide filter here
5563
+ * }
5564
+ * })
5565
+ */
5566
+ findUniqueOrThrow<T extends BrandFindUniqueOrThrowArgs>(args: SelectSubset<T, BrandFindUniqueOrThrowArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5567
+
5568
+ /**
5569
+ * Find the first Brand that matches the filter.
5570
+ * Note, that providing `undefined` is treated as the value not being there.
5571
+ * Read more here: https://pris.ly/d/null-undefined
5572
+ * @param {BrandFindFirstArgs} args - Arguments to find a Brand
5573
+ * @example
5574
+ * // Get one Brand
5575
+ * const brand = await prisma.brand.findFirst({
5576
+ * where: {
5577
+ * // ... provide filter here
5578
+ * }
5579
+ * })
5580
+ */
5581
+ findFirst<T extends BrandFindFirstArgs>(args?: SelectSubset<T, BrandFindFirstArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
5582
+
5583
+ /**
5584
+ * Find the first Brand that matches the filter or
5585
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
5586
+ * Note, that providing `undefined` is treated as the value not being there.
5587
+ * Read more here: https://pris.ly/d/null-undefined
5588
+ * @param {BrandFindFirstOrThrowArgs} args - Arguments to find a Brand
5589
+ * @example
5590
+ * // Get one Brand
5591
+ * const brand = await prisma.brand.findFirstOrThrow({
5592
+ * where: {
5593
+ * // ... provide filter here
5594
+ * }
5595
+ * })
5596
+ */
5597
+ findFirstOrThrow<T extends BrandFindFirstOrThrowArgs>(args?: SelectSubset<T, BrandFindFirstOrThrowArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5598
+
5599
+ /**
5600
+ * Find zero or more Brands that matches the filter.
5601
+ * Note, that providing `undefined` is treated as the value not being there.
5602
+ * Read more here: https://pris.ly/d/null-undefined
5603
+ * @param {BrandFindManyArgs} args - Arguments to filter and select certain fields only.
5604
+ * @example
5605
+ * // Get all Brands
5606
+ * const brands = await prisma.brand.findMany()
5607
+ *
5608
+ * // Get first 10 Brands
5609
+ * const brands = await prisma.brand.findMany({ take: 10 })
5610
+ *
5611
+ * // Only select the `id`
5612
+ * const brandWithIdOnly = await prisma.brand.findMany({ select: { id: true } })
5613
+ *
5614
+ */
5615
+ findMany<T extends BrandFindManyArgs>(args?: SelectSubset<T, BrandFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
5616
+
5617
+ /**
5618
+ * Create a Brand.
5619
+ * @param {BrandCreateArgs} args - Arguments to create a Brand.
5620
+ * @example
5621
+ * // Create one Brand
5622
+ * const Brand = await prisma.brand.create({
5623
+ * data: {
5624
+ * // ... data to create a Brand
5625
+ * }
5626
+ * })
5627
+ *
5628
+ */
5629
+ create<T extends BrandCreateArgs>(args: SelectSubset<T, BrandCreateArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5630
+
5631
+ /**
5632
+ * Create many Brands.
5633
+ * @param {BrandCreateManyArgs} args - Arguments to create many Brands.
5634
+ * @example
5635
+ * // Create many Brands
5636
+ * const brand = await prisma.brand.createMany({
5637
+ * data: [
5638
+ * // ... provide data here
5639
+ * ]
5640
+ * })
5641
+ *
5642
+ */
5643
+ createMany<T extends BrandCreateManyArgs>(args?: SelectSubset<T, BrandCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5644
+
5645
+ /**
5646
+ * Create many Brands and returns the data saved in the database.
5647
+ * @param {BrandCreateManyAndReturnArgs} args - Arguments to create many Brands.
5648
+ * @example
5649
+ * // Create many Brands
5650
+ * const brand = await prisma.brand.createManyAndReturn({
5651
+ * data: [
5652
+ * // ... provide data here
5653
+ * ]
5654
+ * })
5655
+ *
5656
+ * // Create many Brands and only return the `id`
5657
+ * const brandWithIdOnly = await prisma.brand.createManyAndReturn({
5658
+ * select: { id: true },
5659
+ * data: [
5660
+ * // ... provide data here
5661
+ * ]
5662
+ * })
5663
+ * Note, that providing `undefined` is treated as the value not being there.
5664
+ * Read more here: https://pris.ly/d/null-undefined
5665
+ *
5666
+ */
5667
+ createManyAndReturn<T extends BrandCreateManyAndReturnArgs>(args?: SelectSubset<T, BrandCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
5668
+
5669
+ /**
5670
+ * Delete a Brand.
5671
+ * @param {BrandDeleteArgs} args - Arguments to delete one Brand.
5672
+ * @example
5673
+ * // Delete one Brand
5674
+ * const Brand = await prisma.brand.delete({
5675
+ * where: {
5676
+ * // ... filter to delete one Brand
5677
+ * }
5678
+ * })
5679
+ *
5680
+ */
5681
+ delete<T extends BrandDeleteArgs>(args: SelectSubset<T, BrandDeleteArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5682
+
5683
+ /**
5684
+ * Update one Brand.
5685
+ * @param {BrandUpdateArgs} args - Arguments to update one Brand.
5686
+ * @example
5687
+ * // Update one Brand
5688
+ * const brand = await prisma.brand.update({
5689
+ * where: {
5690
+ * // ... provide filter here
5691
+ * },
5692
+ * data: {
5693
+ * // ... provide data here
5694
+ * }
5695
+ * })
5696
+ *
5697
+ */
5698
+ update<T extends BrandUpdateArgs>(args: SelectSubset<T, BrandUpdateArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5699
+
5700
+ /**
5701
+ * Delete zero or more Brands.
5702
+ * @param {BrandDeleteManyArgs} args - Arguments to filter Brands to delete.
5703
+ * @example
5704
+ * // Delete a few Brands
5705
+ * const { count } = await prisma.brand.deleteMany({
5706
+ * where: {
5707
+ * // ... provide filter here
5708
+ * }
5709
+ * })
5710
+ *
5711
+ */
5712
+ deleteMany<T extends BrandDeleteManyArgs>(args?: SelectSubset<T, BrandDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5713
+
5714
+ /**
5715
+ * Update zero or more Brands.
5716
+ * Note, that providing `undefined` is treated as the value not being there.
5717
+ * Read more here: https://pris.ly/d/null-undefined
5718
+ * @param {BrandUpdateManyArgs} args - Arguments to update one or more rows.
5719
+ * @example
5720
+ * // Update many Brands
5721
+ * const brand = await prisma.brand.updateMany({
5722
+ * where: {
5723
+ * // ... provide filter here
5724
+ * },
5725
+ * data: {
5726
+ * // ... provide data here
5727
+ * }
5728
+ * })
5729
+ *
5730
+ */
5731
+ updateMany<T extends BrandUpdateManyArgs>(args: SelectSubset<T, BrandUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5732
+
5733
+ /**
5734
+ * Update zero or more Brands and returns the data updated in the database.
5735
+ * @param {BrandUpdateManyAndReturnArgs} args - Arguments to update many Brands.
5736
+ * @example
5737
+ * // Update many Brands
5738
+ * const brand = await prisma.brand.updateManyAndReturn({
5739
+ * where: {
5740
+ * // ... provide filter here
5741
+ * },
5742
+ * data: [
5743
+ * // ... provide data here
5744
+ * ]
5745
+ * })
5746
+ *
5747
+ * // Update zero or more Brands and only return the `id`
5748
+ * const brandWithIdOnly = await prisma.brand.updateManyAndReturn({
5749
+ * select: { id: true },
5750
+ * where: {
5751
+ * // ... provide filter here
5752
+ * },
5753
+ * data: [
5754
+ * // ... provide data here
5755
+ * ]
5756
+ * })
5757
+ * Note, that providing `undefined` is treated as the value not being there.
5758
+ * Read more here: https://pris.ly/d/null-undefined
5759
+ *
5760
+ */
5761
+ updateManyAndReturn<T extends BrandUpdateManyAndReturnArgs>(args: SelectSubset<T, BrandUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
5762
+
5763
+ /**
5764
+ * Create or update one Brand.
5765
+ * @param {BrandUpsertArgs} args - Arguments to update or create a Brand.
5766
+ * @example
5767
+ * // Update or create a Brand
5768
+ * const brand = await prisma.brand.upsert({
5769
+ * create: {
5770
+ * // ... data to create a Brand
5771
+ * },
5772
+ * update: {
5773
+ * // ... in case it already exists, update
5774
+ * },
5775
+ * where: {
5776
+ * // ... the filter for the Brand we want to update
5777
+ * }
5778
+ * })
5779
+ */
5780
+ upsert<T extends BrandUpsertArgs>(args: SelectSubset<T, BrandUpsertArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
5781
+
5782
+
5783
+ /**
5784
+ * Count the number of Brands.
5785
+ * Note, that providing `undefined` is treated as the value not being there.
5786
+ * Read more here: https://pris.ly/d/null-undefined
5787
+ * @param {BrandCountArgs} args - Arguments to filter Brands to count.
5788
+ * @example
5789
+ * // Count the number of Brands
5790
+ * const count = await prisma.brand.count({
5791
+ * where: {
5792
+ * // ... the filter for the Brands we want to count
5793
+ * }
5794
+ * })
5795
+ **/
5796
+ count<T extends BrandCountArgs>(
5797
+ args?: Subset<T, BrandCountArgs>,
5798
+ ): Prisma.PrismaPromise<
5799
+ T extends $Utils.Record<'select', any>
5800
+ ? T['select'] extends true
5801
+ ? number
5802
+ : GetScalarType<T['select'], BrandCountAggregateOutputType>
5803
+ : number
5804
+ >
5805
+
5806
+ /**
5807
+ * Allows you to perform aggregations operations on a Brand.
5808
+ * Note, that providing `undefined` is treated as the value not being there.
5809
+ * Read more here: https://pris.ly/d/null-undefined
5810
+ * @param {BrandAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
5811
+ * @example
5812
+ * // Ordered by age ascending
5813
+ * // Where email contains prisma.io
5814
+ * // Limited to the 10 users
5815
+ * const aggregations = await prisma.user.aggregate({
5816
+ * _avg: {
5817
+ * age: true,
5818
+ * },
5819
+ * where: {
5820
+ * email: {
5821
+ * contains: "prisma.io",
5822
+ * },
5823
+ * },
5824
+ * orderBy: {
5825
+ * age: "asc",
5826
+ * },
5827
+ * take: 10,
5828
+ * })
5829
+ **/
5830
+ aggregate<T extends BrandAggregateArgs>(args: Subset<T, BrandAggregateArgs>): Prisma.PrismaPromise<GetBrandAggregateType<T>>
5831
+
5832
+ /**
5833
+ * Group by Brand.
5834
+ * Note, that providing `undefined` is treated as the value not being there.
5835
+ * Read more here: https://pris.ly/d/null-undefined
5836
+ * @param {BrandGroupByArgs} args - Group by arguments.
5837
+ * @example
5838
+ * // Group by city, order by createdAt, get count
5839
+ * const result = await prisma.user.groupBy({
5840
+ * by: ['city', 'createdAt'],
5841
+ * orderBy: {
5842
+ * createdAt: true
5843
+ * },
5844
+ * _count: {
5845
+ * _all: true
5846
+ * },
5847
+ * })
5848
+ *
5849
+ **/
5850
+ groupBy<
5851
+ T extends BrandGroupByArgs,
5852
+ HasSelectOrTake extends Or<
5853
+ Extends<'skip', Keys<T>>,
5854
+ Extends<'take', Keys<T>>
5855
+ >,
5856
+ OrderByArg extends True extends HasSelectOrTake
5857
+ ? { orderBy: BrandGroupByArgs['orderBy'] }
5858
+ : { orderBy?: BrandGroupByArgs['orderBy'] },
5859
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
5860
+ ByFields extends MaybeTupleToUnion<T['by']>,
5861
+ ByValid extends Has<ByFields, OrderFields>,
5862
+ HavingFields extends GetHavingFields<T['having']>,
5863
+ HavingValid extends Has<ByFields, HavingFields>,
5864
+ ByEmpty extends T['by'] extends never[] ? True : False,
5865
+ InputErrors extends ByEmpty extends True
5866
+ ? `Error: "by" must not be empty.`
5867
+ : HavingValid extends False
5868
+ ? {
5869
+ [P in HavingFields]: P extends ByFields
5870
+ ? never
5871
+ : P extends string
5872
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
5873
+ : [
5874
+ Error,
5875
+ 'Field ',
5876
+ P,
5877
+ ` in "having" needs to be provided in "by"`,
5878
+ ]
5879
+ }[HavingFields]
5880
+ : 'take' extends Keys<T>
5881
+ ? 'orderBy' extends Keys<T>
5882
+ ? ByValid extends True
5883
+ ? {}
5884
+ : {
5885
+ [P in OrderFields]: P extends ByFields
5886
+ ? never
5887
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5888
+ }[OrderFields]
5889
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
5890
+ : 'skip' extends Keys<T>
5891
+ ? 'orderBy' extends Keys<T>
5892
+ ? ByValid extends True
5893
+ ? {}
5894
+ : {
5895
+ [P in OrderFields]: P extends ByFields
5896
+ ? never
5897
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5898
+ }[OrderFields]
5899
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
5900
+ : ByValid extends True
5901
+ ? {}
5902
+ : {
5903
+ [P in OrderFields]: P extends ByFields
5904
+ ? never
5905
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5906
+ }[OrderFields]
5907
+ >(args: SubsetIntersection<T, BrandGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBrandGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
5908
+ /**
5909
+ * Fields of the Brand model
5910
+ */
5911
+ readonly fields: BrandFieldRefs;
5912
+ }
5913
+
5914
+ /**
5915
+ * The delegate class that acts as a "Promise-like" for Brand.
5916
+ * Why is this prefixed with `Prisma__`?
5917
+ * Because we want to prevent naming conflicts as mentioned in
5918
+ * https://github.com/prisma/prisma-client-js/issues/707
5919
+ */
5920
+ export interface Prisma__BrandClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
5921
+ readonly [Symbol.toStringTag]: "PrismaPromise"
5922
+ products<T extends Brand$productsArgs<ExtArgs> = {}>(args?: Subset<T, Brand$productsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
5923
+ /**
5924
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
5925
+ * @param onfulfilled The callback to execute when the Promise is resolved.
5926
+ * @param onrejected The callback to execute when the Promise is rejected.
5927
+ * @returns A Promise for the completion of which ever callback is executed.
5928
+ */
5929
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
5930
+ /**
5931
+ * Attaches a callback for only the rejection of the Promise.
5932
+ * @param onrejected The callback to execute when the Promise is rejected.
5933
+ * @returns A Promise for the completion of the callback.
5934
+ */
5935
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
5936
+ /**
5937
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
5938
+ * resolved value cannot be modified from the callback.
5939
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
5940
+ * @returns A Promise for the completion of the callback.
5941
+ */
5942
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
5943
+ }
5944
+
5945
+
5946
+
5947
+
5948
+ /**
5949
+ * Fields of the Brand model
5950
+ */
5951
+ interface BrandFieldRefs {
5952
+ readonly id: FieldRef<"Brand", 'String'>
5953
+ readonly code: FieldRef<"Brand", 'String'>
5954
+ readonly name: FieldRef<"Brand", 'String'>
5955
+ readonly createdAt: FieldRef<"Brand", 'DateTime'>
5956
+ readonly updatedAt: FieldRef<"Brand", 'DateTime'>
5957
+ }
5958
+
5959
+
5960
+ // Custom InputTypes
5961
+ /**
5962
+ * Brand findUnique
5963
+ */
5964
+ export type BrandFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5965
+ /**
5966
+ * Select specific fields to fetch from the Brand
5967
+ */
5968
+ select?: BrandSelect<ExtArgs> | null
5969
+ /**
5970
+ * Omit specific fields from the Brand
5971
+ */
5972
+ omit?: BrandOmit<ExtArgs> | null
5973
+ /**
5974
+ * Choose, which related nodes to fetch as well
5975
+ */
5976
+ include?: BrandInclude<ExtArgs> | null
5977
+ /**
5978
+ * Filter, which Brand to fetch.
5979
+ */
5980
+ where: BrandWhereUniqueInput
5981
+ }
5982
+
5983
+ /**
5984
+ * Brand findUniqueOrThrow
5985
+ */
5986
+ export type BrandFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5987
+ /**
5988
+ * Select specific fields to fetch from the Brand
5989
+ */
5990
+ select?: BrandSelect<ExtArgs> | null
5991
+ /**
5992
+ * Omit specific fields from the Brand
5993
+ */
5994
+ omit?: BrandOmit<ExtArgs> | null
5995
+ /**
5996
+ * Choose, which related nodes to fetch as well
5997
+ */
5998
+ include?: BrandInclude<ExtArgs> | null
5999
+ /**
6000
+ * Filter, which Brand to fetch.
6001
+ */
6002
+ where: BrandWhereUniqueInput
6003
+ }
6004
+
6005
+ /**
6006
+ * Brand findFirst
6007
+ */
6008
+ export type BrandFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6009
+ /**
6010
+ * Select specific fields to fetch from the Brand
6011
+ */
6012
+ select?: BrandSelect<ExtArgs> | null
6013
+ /**
6014
+ * Omit specific fields from the Brand
6015
+ */
6016
+ omit?: BrandOmit<ExtArgs> | null
6017
+ /**
6018
+ * Choose, which related nodes to fetch as well
6019
+ */
6020
+ include?: BrandInclude<ExtArgs> | null
6021
+ /**
6022
+ * Filter, which Brand to fetch.
6023
+ */
6024
+ where?: BrandWhereInput
6025
+ /**
6026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6027
+ *
6028
+ * Determine the order of Brands to fetch.
6029
+ */
6030
+ orderBy?: BrandOrderByWithRelationInput | BrandOrderByWithRelationInput[]
6031
+ /**
6032
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6033
+ *
6034
+ * Sets the position for searching for Brands.
6035
+ */
6036
+ cursor?: BrandWhereUniqueInput
6037
+ /**
6038
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6039
+ *
6040
+ * Take `±n` Brands from the position of the cursor.
6041
+ */
6042
+ take?: number
6043
+ /**
6044
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6045
+ *
6046
+ * Skip the first `n` Brands.
6047
+ */
6048
+ skip?: number
6049
+ /**
6050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
6051
+ *
6052
+ * Filter by unique combinations of Brands.
6053
+ */
6054
+ distinct?: BrandScalarFieldEnum | BrandScalarFieldEnum[]
6055
+ }
6056
+
6057
+ /**
6058
+ * Brand findFirstOrThrow
6059
+ */
6060
+ export type BrandFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6061
+ /**
6062
+ * Select specific fields to fetch from the Brand
6063
+ */
6064
+ select?: BrandSelect<ExtArgs> | null
6065
+ /**
6066
+ * Omit specific fields from the Brand
6067
+ */
6068
+ omit?: BrandOmit<ExtArgs> | null
6069
+ /**
6070
+ * Choose, which related nodes to fetch as well
6071
+ */
6072
+ include?: BrandInclude<ExtArgs> | null
6073
+ /**
6074
+ * Filter, which Brand to fetch.
6075
+ */
6076
+ where?: BrandWhereInput
6077
+ /**
6078
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6079
+ *
6080
+ * Determine the order of Brands to fetch.
6081
+ */
6082
+ orderBy?: BrandOrderByWithRelationInput | BrandOrderByWithRelationInput[]
6083
+ /**
6084
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6085
+ *
6086
+ * Sets the position for searching for Brands.
6087
+ */
6088
+ cursor?: BrandWhereUniqueInput
6089
+ /**
6090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6091
+ *
6092
+ * Take `±n` Brands from the position of the cursor.
6093
+ */
6094
+ take?: number
6095
+ /**
6096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6097
+ *
6098
+ * Skip the first `n` Brands.
6099
+ */
6100
+ skip?: number
6101
+ /**
6102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
6103
+ *
6104
+ * Filter by unique combinations of Brands.
6105
+ */
6106
+ distinct?: BrandScalarFieldEnum | BrandScalarFieldEnum[]
6107
+ }
6108
+
6109
+ /**
6110
+ * Brand findMany
6111
+ */
6112
+ export type BrandFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6113
+ /**
6114
+ * Select specific fields to fetch from the Brand
6115
+ */
6116
+ select?: BrandSelect<ExtArgs> | null
6117
+ /**
6118
+ * Omit specific fields from the Brand
6119
+ */
6120
+ omit?: BrandOmit<ExtArgs> | null
6121
+ /**
6122
+ * Choose, which related nodes to fetch as well
6123
+ */
6124
+ include?: BrandInclude<ExtArgs> | null
6125
+ /**
6126
+ * Filter, which Brands to fetch.
6127
+ */
6128
+ where?: BrandWhereInput
6129
+ /**
6130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6131
+ *
6132
+ * Determine the order of Brands to fetch.
6133
+ */
6134
+ orderBy?: BrandOrderByWithRelationInput | BrandOrderByWithRelationInput[]
6135
+ /**
6136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6137
+ *
6138
+ * Sets the position for listing Brands.
6139
+ */
6140
+ cursor?: BrandWhereUniqueInput
6141
+ /**
6142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6143
+ *
6144
+ * Take `±n` Brands from the position of the cursor.
6145
+ */
6146
+ take?: number
6147
+ /**
6148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6149
+ *
6150
+ * Skip the first `n` Brands.
6151
+ */
6152
+ skip?: number
6153
+ distinct?: BrandScalarFieldEnum | BrandScalarFieldEnum[]
6154
+ }
6155
+
6156
+ /**
6157
+ * Brand create
6158
+ */
6159
+ export type BrandCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6160
+ /**
6161
+ * Select specific fields to fetch from the Brand
6162
+ */
6163
+ select?: BrandSelect<ExtArgs> | null
6164
+ /**
6165
+ * Omit specific fields from the Brand
6166
+ */
6167
+ omit?: BrandOmit<ExtArgs> | null
6168
+ /**
6169
+ * Choose, which related nodes to fetch as well
6170
+ */
6171
+ include?: BrandInclude<ExtArgs> | null
6172
+ /**
6173
+ * The data needed to create a Brand.
6174
+ */
6175
+ data: XOR<BrandCreateInput, BrandUncheckedCreateInput>
6176
+ }
6177
+
6178
+ /**
6179
+ * Brand createMany
6180
+ */
6181
+ export type BrandCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6182
+ /**
6183
+ * The data used to create many Brands.
6184
+ */
6185
+ data: BrandCreateManyInput | BrandCreateManyInput[]
6186
+ skipDuplicates?: boolean
6187
+ }
6188
+
6189
+ /**
6190
+ * Brand createManyAndReturn
6191
+ */
6192
+ export type BrandCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6193
+ /**
6194
+ * Select specific fields to fetch from the Brand
6195
+ */
6196
+ select?: BrandSelectCreateManyAndReturn<ExtArgs> | null
6197
+ /**
6198
+ * Omit specific fields from the Brand
6199
+ */
6200
+ omit?: BrandOmit<ExtArgs> | null
6201
+ /**
6202
+ * The data used to create many Brands.
6203
+ */
6204
+ data: BrandCreateManyInput | BrandCreateManyInput[]
6205
+ skipDuplicates?: boolean
6206
+ }
6207
+
6208
+ /**
6209
+ * Brand update
6210
+ */
6211
+ export type BrandUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6212
+ /**
6213
+ * Select specific fields to fetch from the Brand
6214
+ */
6215
+ select?: BrandSelect<ExtArgs> | null
6216
+ /**
6217
+ * Omit specific fields from the Brand
6218
+ */
6219
+ omit?: BrandOmit<ExtArgs> | null
6220
+ /**
6221
+ * Choose, which related nodes to fetch as well
6222
+ */
6223
+ include?: BrandInclude<ExtArgs> | null
6224
+ /**
6225
+ * The data needed to update a Brand.
6226
+ */
6227
+ data: XOR<BrandUpdateInput, BrandUncheckedUpdateInput>
6228
+ /**
6229
+ * Choose, which Brand to update.
6230
+ */
6231
+ where: BrandWhereUniqueInput
6232
+ }
6233
+
6234
+ /**
6235
+ * Brand updateMany
6236
+ */
6237
+ export type BrandUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6238
+ /**
6239
+ * The data used to update Brands.
6240
+ */
6241
+ data: XOR<BrandUpdateManyMutationInput, BrandUncheckedUpdateManyInput>
6242
+ /**
6243
+ * Filter which Brands to update
6244
+ */
6245
+ where?: BrandWhereInput
6246
+ /**
6247
+ * Limit how many Brands to update.
6248
+ */
6249
+ limit?: number
6250
+ }
6251
+
6252
+ /**
6253
+ * Brand updateManyAndReturn
6254
+ */
6255
+ export type BrandUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6256
+ /**
6257
+ * Select specific fields to fetch from the Brand
6258
+ */
6259
+ select?: BrandSelectUpdateManyAndReturn<ExtArgs> | null
6260
+ /**
6261
+ * Omit specific fields from the Brand
6262
+ */
6263
+ omit?: BrandOmit<ExtArgs> | null
6264
+ /**
6265
+ * The data used to update Brands.
6266
+ */
6267
+ data: XOR<BrandUpdateManyMutationInput, BrandUncheckedUpdateManyInput>
6268
+ /**
6269
+ * Filter which Brands to update
6270
+ */
6271
+ where?: BrandWhereInput
6272
+ /**
6273
+ * Limit how many Brands to update.
6274
+ */
6275
+ limit?: number
6276
+ }
6277
+
6278
+ /**
6279
+ * Brand upsert
6280
+ */
6281
+ export type BrandUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6282
+ /**
6283
+ * Select specific fields to fetch from the Brand
6284
+ */
6285
+ select?: BrandSelect<ExtArgs> | null
6286
+ /**
6287
+ * Omit specific fields from the Brand
6288
+ */
6289
+ omit?: BrandOmit<ExtArgs> | null
6290
+ /**
6291
+ * Choose, which related nodes to fetch as well
6292
+ */
6293
+ include?: BrandInclude<ExtArgs> | null
6294
+ /**
6295
+ * The filter to search for the Brand to update in case it exists.
6296
+ */
6297
+ where: BrandWhereUniqueInput
6298
+ /**
6299
+ * In case the Brand found by the `where` argument doesn't exist, create a new Brand with this data.
6300
+ */
6301
+ create: XOR<BrandCreateInput, BrandUncheckedCreateInput>
6302
+ /**
6303
+ * In case the Brand was found with the provided `where` argument, update it with this data.
6304
+ */
6305
+ update: XOR<BrandUpdateInput, BrandUncheckedUpdateInput>
6306
+ }
6307
+
6308
+ /**
6309
+ * Brand delete
6310
+ */
6311
+ export type BrandDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6312
+ /**
6313
+ * Select specific fields to fetch from the Brand
6314
+ */
6315
+ select?: BrandSelect<ExtArgs> | null
6316
+ /**
6317
+ * Omit specific fields from the Brand
6318
+ */
6319
+ omit?: BrandOmit<ExtArgs> | null
6320
+ /**
6321
+ * Choose, which related nodes to fetch as well
6322
+ */
6323
+ include?: BrandInclude<ExtArgs> | null
6324
+ /**
6325
+ * Filter which Brand to delete.
6326
+ */
6327
+ where: BrandWhereUniqueInput
6328
+ }
6329
+
6330
+ /**
6331
+ * Brand deleteMany
6332
+ */
6333
+ export type BrandDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6334
+ /**
6335
+ * Filter which Brands to delete
6336
+ */
6337
+ where?: BrandWhereInput
6338
+ /**
6339
+ * Limit how many Brands to delete.
6340
+ */
6341
+ limit?: number
6342
+ }
6343
+
6344
+ /**
6345
+ * Brand.products
6346
+ */
6347
+ export type Brand$productsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6348
+ /**
6349
+ * Select specific fields to fetch from the Product
6350
+ */
6351
+ select?: ProductSelect<ExtArgs> | null
6352
+ /**
6353
+ * Omit specific fields from the Product
6354
+ */
6355
+ omit?: ProductOmit<ExtArgs> | null
6356
+ /**
6357
+ * Choose, which related nodes to fetch as well
6358
+ */
6359
+ include?: ProductInclude<ExtArgs> | null
6360
+ where?: ProductWhereInput
6361
+ orderBy?: ProductOrderByWithRelationInput | ProductOrderByWithRelationInput[]
6362
+ cursor?: ProductWhereUniqueInput
6363
+ take?: number
6364
+ skip?: number
6365
+ distinct?: ProductScalarFieldEnum | ProductScalarFieldEnum[]
6366
+ }
6367
+
6368
+ /**
6369
+ * Brand without action
5178
6370
  */
5179
- export type CategoriesAttributeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6371
+ export type BrandDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5180
6372
  /**
5181
- * Select specific fields to fetch from the CategoriesAttribute
6373
+ * Select specific fields to fetch from the Brand
5182
6374
  */
5183
- select?: CategoriesAttributeSelect<ExtArgs> | null
6375
+ select?: BrandSelect<ExtArgs> | null
5184
6376
  /**
5185
- * Omit specific fields from the CategoriesAttribute
6377
+ * Omit specific fields from the Brand
5186
6378
  */
5187
- omit?: CategoriesAttributeOmit<ExtArgs> | null
6379
+ omit?: BrandOmit<ExtArgs> | null
5188
6380
  /**
5189
6381
  * Choose, which related nodes to fetch as well
5190
6382
  */
5191
- include?: CategoriesAttributeInclude<ExtArgs> | null
6383
+ include?: BrandInclude<ExtArgs> | null
5192
6384
  }
5193
6385
 
5194
6386
 
@@ -5215,7 +6407,7 @@ export namespace Prisma {
5215
6407
  export type ProductMinAggregateOutputType = {
5216
6408
  id: string | null
5217
6409
  name: string | null
5218
- title: string | null
6410
+ brandId: string | null
5219
6411
  description: string | null
5220
6412
  keywords: string | null
5221
6413
  categoryId: string | null
@@ -5228,7 +6420,7 @@ export namespace Prisma {
5228
6420
  export type ProductMaxAggregateOutputType = {
5229
6421
  id: string | null
5230
6422
  name: string | null
5231
- title: string | null
6423
+ brandId: string | null
5232
6424
  description: string | null
5233
6425
  keywords: string | null
5234
6426
  categoryId: string | null
@@ -5241,7 +6433,7 @@ export namespace Prisma {
5241
6433
  export type ProductCountAggregateOutputType = {
5242
6434
  id: number
5243
6435
  name: number
5244
- title: number
6436
+ brandId: number
5245
6437
  description: number
5246
6438
  keywords: number
5247
6439
  categoryId: number
@@ -5265,7 +6457,7 @@ export namespace Prisma {
5265
6457
  export type ProductMinAggregateInputType = {
5266
6458
  id?: true
5267
6459
  name?: true
5268
- title?: true
6460
+ brandId?: true
5269
6461
  description?: true
5270
6462
  keywords?: true
5271
6463
  categoryId?: true
@@ -5278,7 +6470,7 @@ export namespace Prisma {
5278
6470
  export type ProductMaxAggregateInputType = {
5279
6471
  id?: true
5280
6472
  name?: true
5281
- title?: true
6473
+ brandId?: true
5282
6474
  description?: true
5283
6475
  keywords?: true
5284
6476
  categoryId?: true
@@ -5291,7 +6483,7 @@ export namespace Prisma {
5291
6483
  export type ProductCountAggregateInputType = {
5292
6484
  id?: true
5293
6485
  name?: true
5294
- title?: true
6486
+ brandId?: true
5295
6487
  description?: true
5296
6488
  keywords?: true
5297
6489
  categoryId?: true
@@ -5392,7 +6584,7 @@ export namespace Prisma {
5392
6584
  export type ProductGroupByOutputType = {
5393
6585
  id: string
5394
6586
  name: string
5395
- title: string
6587
+ brandId: string | null
5396
6588
  description: string
5397
6589
  keywords: string
5398
6590
  categoryId: string
@@ -5425,7 +6617,7 @@ export namespace Prisma {
5425
6617
  export type ProductSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5426
6618
  id?: boolean
5427
6619
  name?: boolean
5428
- title?: boolean
6620
+ brandId?: boolean
5429
6621
  description?: boolean
5430
6622
  keywords?: boolean
5431
6623
  categoryId?: boolean
@@ -5436,13 +6628,14 @@ export namespace Prisma {
5436
6628
  updatedAt?: boolean
5437
6629
  category?: boolean | CategoryDefaultArgs<ExtArgs>
5438
6630
  skus?: boolean | Product$skusArgs<ExtArgs>
6631
+ brand?: boolean | Product$brandArgs<ExtArgs>
5439
6632
  _count?: boolean | ProductCountOutputTypeDefaultArgs<ExtArgs>
5440
6633
  }, ExtArgs["result"]["product"]>
5441
6634
 
5442
6635
  export type ProductSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5443
6636
  id?: boolean
5444
6637
  name?: boolean
5445
- title?: boolean
6638
+ brandId?: boolean
5446
6639
  description?: boolean
5447
6640
  keywords?: boolean
5448
6641
  categoryId?: boolean
@@ -5452,12 +6645,13 @@ export namespace Prisma {
5452
6645
  createdAt?: boolean
5453
6646
  updatedAt?: boolean
5454
6647
  category?: boolean | CategoryDefaultArgs<ExtArgs>
6648
+ brand?: boolean | Product$brandArgs<ExtArgs>
5455
6649
  }, ExtArgs["result"]["product"]>
5456
6650
 
5457
6651
  export type ProductSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5458
6652
  id?: boolean
5459
6653
  name?: boolean
5460
- title?: boolean
6654
+ brandId?: boolean
5461
6655
  description?: boolean
5462
6656
  keywords?: boolean
5463
6657
  categoryId?: boolean
@@ -5467,12 +6661,13 @@ export namespace Prisma {
5467
6661
  createdAt?: boolean
5468
6662
  updatedAt?: boolean
5469
6663
  category?: boolean | CategoryDefaultArgs<ExtArgs>
6664
+ brand?: boolean | Product$brandArgs<ExtArgs>
5470
6665
  }, ExtArgs["result"]["product"]>
5471
6666
 
5472
6667
  export type ProductSelectScalar = {
5473
6668
  id?: boolean
5474
6669
  name?: boolean
5475
- title?: boolean
6670
+ brandId?: boolean
5476
6671
  description?: boolean
5477
6672
  keywords?: boolean
5478
6673
  categoryId?: boolean
@@ -5483,17 +6678,20 @@ export namespace Prisma {
5483
6678
  updatedAt?: boolean
5484
6679
  }
5485
6680
 
5486
- export type ProductOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "title" | "description" | "keywords" | "categoryId" | "viewedCount" | "status" | "media" | "createdAt" | "updatedAt", ExtArgs["result"]["product"]>
6681
+ export type ProductOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "brandId" | "description" | "keywords" | "categoryId" | "viewedCount" | "status" | "media" | "createdAt" | "updatedAt", ExtArgs["result"]["product"]>
5487
6682
  export type ProductInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5488
6683
  category?: boolean | CategoryDefaultArgs<ExtArgs>
5489
6684
  skus?: boolean | Product$skusArgs<ExtArgs>
6685
+ brand?: boolean | Product$brandArgs<ExtArgs>
5490
6686
  _count?: boolean | ProductCountOutputTypeDefaultArgs<ExtArgs>
5491
6687
  }
5492
6688
  export type ProductIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5493
6689
  category?: boolean | CategoryDefaultArgs<ExtArgs>
6690
+ brand?: boolean | Product$brandArgs<ExtArgs>
5494
6691
  }
5495
6692
  export type ProductIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5496
6693
  category?: boolean | CategoryDefaultArgs<ExtArgs>
6694
+ brand?: boolean | Product$brandArgs<ExtArgs>
5497
6695
  }
5498
6696
 
5499
6697
  export type $ProductPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -5501,11 +6699,12 @@ export namespace Prisma {
5501
6699
  objects: {
5502
6700
  category: Prisma.$CategoryPayload<ExtArgs>
5503
6701
  skus: Prisma.$SkuPayload<ExtArgs>[]
6702
+ brand: Prisma.$BrandPayload<ExtArgs> | null
5504
6703
  }
5505
6704
  scalars: $Extensions.GetPayloadResult<{
5506
6705
  id: string
5507
6706
  name: string
5508
- title: string
6707
+ brandId: string | null
5509
6708
  description: string
5510
6709
  keywords: string
5511
6710
  categoryId: string
@@ -5913,6 +7112,7 @@ export namespace Prisma {
5913
7112
  readonly [Symbol.toStringTag]: "PrismaPromise"
5914
7113
  category<T extends CategoryDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CategoryDefaultArgs<ExtArgs>>): Prisma__CategoryClient<$Result.GetResult<Prisma.$CategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
5915
7114
  skus<T extends Product$skusArgs<ExtArgs> = {}>(args?: Subset<T, Product$skusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SkuPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
7115
+ brand<T extends Product$brandArgs<ExtArgs> = {}>(args?: Subset<T, Product$brandArgs<ExtArgs>>): Prisma__BrandClient<$Result.GetResult<Prisma.$BrandPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
5916
7116
  /**
5917
7117
  * Attaches callbacks for the resolution and/or rejection of the Promise.
5918
7118
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -5944,7 +7144,7 @@ export namespace Prisma {
5944
7144
  interface ProductFieldRefs {
5945
7145
  readonly id: FieldRef<"Product", 'String'>
5946
7146
  readonly name: FieldRef<"Product", 'String'>
5947
- readonly title: FieldRef<"Product", 'String'>
7147
+ readonly brandId: FieldRef<"Product", 'String'>
5948
7148
  readonly description: FieldRef<"Product", 'String'>
5949
7149
  readonly keywords: FieldRef<"Product", 'String'>
5950
7150
  readonly categoryId: FieldRef<"Product", 'String'>
@@ -6372,6 +7572,25 @@ export namespace Prisma {
6372
7572
  distinct?: SkuScalarFieldEnum | SkuScalarFieldEnum[]
6373
7573
  }
6374
7574
 
7575
+ /**
7576
+ * Product.brand
7577
+ */
7578
+ export type Product$brandArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7579
+ /**
7580
+ * Select specific fields to fetch from the Brand
7581
+ */
7582
+ select?: BrandSelect<ExtArgs> | null
7583
+ /**
7584
+ * Omit specific fields from the Brand
7585
+ */
7586
+ omit?: BrandOmit<ExtArgs> | null
7587
+ /**
7588
+ * Choose, which related nodes to fetch as well
7589
+ */
7590
+ include?: BrandInclude<ExtArgs> | null
7591
+ where?: BrandWhereInput
7592
+ }
7593
+
6375
7594
  /**
6376
7595
  * Product without action
6377
7596
  */
@@ -9720,7 +10939,6 @@ export namespace Prisma {
9720
10939
  skuNo: string | null
9721
10940
  productId: string | null
9722
10941
  price: bigint | null
9723
- brand: string | null
9724
10942
  inactive: boolean | null
9725
10943
  createdAt: Date | null
9726
10944
  updatedAt: Date | null
@@ -9731,7 +10949,6 @@ export namespace Prisma {
9731
10949
  skuNo: string | null
9732
10950
  productId: string | null
9733
10951
  price: bigint | null
9734
- brand: string | null
9735
10952
  inactive: boolean | null
9736
10953
  createdAt: Date | null
9737
10954
  updatedAt: Date | null
@@ -9742,7 +10959,6 @@ export namespace Prisma {
9742
10959
  skuNo: number
9743
10960
  productId: number
9744
10961
  price: number
9745
- brand: number
9746
10962
  media: number
9747
10963
  inactive: number
9748
10964
  createdAt: number
@@ -9764,7 +10980,6 @@ export namespace Prisma {
9764
10980
  skuNo?: true
9765
10981
  productId?: true
9766
10982
  price?: true
9767
- brand?: true
9768
10983
  inactive?: true
9769
10984
  createdAt?: true
9770
10985
  updatedAt?: true
@@ -9775,7 +10990,6 @@ export namespace Prisma {
9775
10990
  skuNo?: true
9776
10991
  productId?: true
9777
10992
  price?: true
9778
- brand?: true
9779
10993
  inactive?: true
9780
10994
  createdAt?: true
9781
10995
  updatedAt?: true
@@ -9786,7 +11000,6 @@ export namespace Prisma {
9786
11000
  skuNo?: true
9787
11001
  productId?: true
9788
11002
  price?: true
9789
- brand?: true
9790
11003
  media?: true
9791
11004
  inactive?: true
9792
11005
  createdAt?: true
@@ -9885,7 +11098,6 @@ export namespace Prisma {
9885
11098
  skuNo: string
9886
11099
  productId: string
9887
11100
  price: bigint
9888
- brand: string | null
9889
11101
  media:PrismaJson.PrismaMediaEntity | null
9890
11102
  inactive: boolean | null
9891
11103
  createdAt: Date
@@ -9916,7 +11128,6 @@ export namespace Prisma {
9916
11128
  skuNo?: boolean
9917
11129
  productId?: boolean
9918
11130
  price?: boolean
9919
- brand?: boolean
9920
11131
  media?: boolean
9921
11132
  inactive?: boolean
9922
11133
  createdAt?: boolean
@@ -9931,7 +11142,6 @@ export namespace Prisma {
9931
11142
  skuNo?: boolean
9932
11143
  productId?: boolean
9933
11144
  price?: boolean
9934
- brand?: boolean
9935
11145
  media?: boolean
9936
11146
  inactive?: boolean
9937
11147
  createdAt?: boolean
@@ -9944,7 +11154,6 @@ export namespace Prisma {
9944
11154
  skuNo?: boolean
9945
11155
  productId?: boolean
9946
11156
  price?: boolean
9947
- brand?: boolean
9948
11157
  media?: boolean
9949
11158
  inactive?: boolean
9950
11159
  createdAt?: boolean
@@ -9957,14 +11166,13 @@ export namespace Prisma {
9957
11166
  skuNo?: boolean
9958
11167
  productId?: boolean
9959
11168
  price?: boolean
9960
- brand?: boolean
9961
11169
  media?: boolean
9962
11170
  inactive?: boolean
9963
11171
  createdAt?: boolean
9964
11172
  updatedAt?: boolean
9965
11173
  }
9966
11174
 
9967
- export type SkuOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "skuNo" | "productId" | "price" | "brand" | "media" | "inactive" | "createdAt" | "updatedAt", ExtArgs["result"]["sku"]>
11175
+ export type SkuOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "skuNo" | "productId" | "price" | "media" | "inactive" | "createdAt" | "updatedAt", ExtArgs["result"]["sku"]>
9968
11176
  export type SkuInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9969
11177
  attributeValues?: boolean | Sku$attributeValuesArgs<ExtArgs>
9970
11178
  product?: boolean | Sku$productArgs<ExtArgs>
@@ -9988,7 +11196,6 @@ export namespace Prisma {
9988
11196
  skuNo: string
9989
11197
  productId: string
9990
11198
  price: bigint
9991
- brand: string | null
9992
11199
  /**
9993
11200
  * [PrismaMediaEntity]
9994
11201
  */
@@ -10425,7 +11632,6 @@ export namespace Prisma {
10425
11632
  readonly skuNo: FieldRef<"Sku", 'String'>
10426
11633
  readonly productId: FieldRef<"Sku", 'String'>
10427
11634
  readonly price: FieldRef<"Sku", 'BigInt'>
10428
- readonly brand: FieldRef<"Sku", 'String'>
10429
11635
  readonly media: FieldRef<"Sku", 'Json'>
10430
11636
  readonly inactive: FieldRef<"Sku", 'Boolean'>
10431
11637
  readonly createdAt: FieldRef<"Sku", 'DateTime'>
@@ -10936,10 +12142,21 @@ export namespace Prisma {
10936
12142
  export type CategoriesAttributeScalarFieldEnum = (typeof CategoriesAttributeScalarFieldEnum)[keyof typeof CategoriesAttributeScalarFieldEnum]
10937
12143
 
10938
12144
 
12145
+ export const BrandScalarFieldEnum: {
12146
+ id: 'id',
12147
+ code: 'code',
12148
+ name: 'name',
12149
+ createdAt: 'createdAt',
12150
+ updatedAt: 'updatedAt'
12151
+ };
12152
+
12153
+ export type BrandScalarFieldEnum = (typeof BrandScalarFieldEnum)[keyof typeof BrandScalarFieldEnum]
12154
+
12155
+
10939
12156
  export const ProductScalarFieldEnum: {
10940
12157
  id: 'id',
10941
12158
  name: 'name',
10942
- title: 'title',
12159
+ brandId: 'brandId',
10943
12160
  description: 'description',
10944
12161
  keywords: 'keywords',
10945
12162
  categoryId: 'categoryId',
@@ -11002,7 +12219,6 @@ export namespace Prisma {
11002
12219
  skuNo: 'skuNo',
11003
12220
  productId: 'productId',
11004
12221
  price: 'price',
11005
- brand: 'brand',
11006
12222
  media: 'media',
11007
12223
  inactive: 'inactive',
11008
12224
  createdAt: 'createdAt',
@@ -11347,13 +12563,68 @@ export namespace Prisma {
11347
12563
  updatedAt?: DateTimeWithAggregatesFilter<"CategoriesAttribute"> | Date | string
11348
12564
  }
11349
12565
 
12566
+ export type BrandWhereInput = {
12567
+ AND?: BrandWhereInput | BrandWhereInput[]
12568
+ OR?: BrandWhereInput[]
12569
+ NOT?: BrandWhereInput | BrandWhereInput[]
12570
+ id?: UuidFilter<"Brand"> | string
12571
+ code?: StringFilter<"Brand"> | string
12572
+ name?: StringFilter<"Brand"> | string
12573
+ createdAt?: DateTimeFilter<"Brand"> | Date | string
12574
+ updatedAt?: DateTimeFilter<"Brand"> | Date | string
12575
+ products?: ProductListRelationFilter
12576
+ }
12577
+
12578
+ export type BrandOrderByWithRelationInput = {
12579
+ id?: SortOrder
12580
+ code?: SortOrder
12581
+ name?: SortOrder
12582
+ createdAt?: SortOrder
12583
+ updatedAt?: SortOrder
12584
+ products?: ProductOrderByRelationAggregateInput
12585
+ }
12586
+
12587
+ export type BrandWhereUniqueInput = Prisma.AtLeast<{
12588
+ id?: string
12589
+ code?: string
12590
+ name?: string
12591
+ AND?: BrandWhereInput | BrandWhereInput[]
12592
+ OR?: BrandWhereInput[]
12593
+ NOT?: BrandWhereInput | BrandWhereInput[]
12594
+ createdAt?: DateTimeFilter<"Brand"> | Date | string
12595
+ updatedAt?: DateTimeFilter<"Brand"> | Date | string
12596
+ products?: ProductListRelationFilter
12597
+ }, "id" | "code" | "name">
12598
+
12599
+ export type BrandOrderByWithAggregationInput = {
12600
+ id?: SortOrder
12601
+ code?: SortOrder
12602
+ name?: SortOrder
12603
+ createdAt?: SortOrder
12604
+ updatedAt?: SortOrder
12605
+ _count?: BrandCountOrderByAggregateInput
12606
+ _max?: BrandMaxOrderByAggregateInput
12607
+ _min?: BrandMinOrderByAggregateInput
12608
+ }
12609
+
12610
+ export type BrandScalarWhereWithAggregatesInput = {
12611
+ AND?: BrandScalarWhereWithAggregatesInput | BrandScalarWhereWithAggregatesInput[]
12612
+ OR?: BrandScalarWhereWithAggregatesInput[]
12613
+ NOT?: BrandScalarWhereWithAggregatesInput | BrandScalarWhereWithAggregatesInput[]
12614
+ id?: UuidWithAggregatesFilter<"Brand"> | string
12615
+ code?: StringWithAggregatesFilter<"Brand"> | string
12616
+ name?: StringWithAggregatesFilter<"Brand"> | string
12617
+ createdAt?: DateTimeWithAggregatesFilter<"Brand"> | Date | string
12618
+ updatedAt?: DateTimeWithAggregatesFilter<"Brand"> | Date | string
12619
+ }
12620
+
11350
12621
  export type ProductWhereInput = {
11351
12622
  AND?: ProductWhereInput | ProductWhereInput[]
11352
12623
  OR?: ProductWhereInput[]
11353
12624
  NOT?: ProductWhereInput | ProductWhereInput[]
11354
12625
  id?: UuidFilter<"Product"> | string
11355
12626
  name?: StringFilter<"Product"> | string
11356
- title?: StringFilter<"Product"> | string
12627
+ brandId?: UuidNullableFilter<"Product"> | string | null
11357
12628
  description?: StringFilter<"Product"> | string
11358
12629
  keywords?: StringFilter<"Product"> | string
11359
12630
  categoryId?: UuidFilter<"Product"> | string
@@ -11364,12 +12635,13 @@ export namespace Prisma {
11364
12635
  updatedAt?: DateTimeFilter<"Product"> | Date | string
11365
12636
  category?: XOR<CategoryScalarRelationFilter, CategoryWhereInput>
11366
12637
  skus?: SkuListRelationFilter
12638
+ brand?: XOR<BrandNullableScalarRelationFilter, BrandWhereInput> | null
11367
12639
  }
11368
12640
 
11369
12641
  export type ProductOrderByWithRelationInput = {
11370
12642
  id?: SortOrder
11371
12643
  name?: SortOrder
11372
- title?: SortOrder
12644
+ brandId?: SortOrderInput | SortOrder
11373
12645
  description?: SortOrder
11374
12646
  keywords?: SortOrder
11375
12647
  categoryId?: SortOrder
@@ -11380,6 +12652,7 @@ export namespace Prisma {
11380
12652
  updatedAt?: SortOrder
11381
12653
  category?: CategoryOrderByWithRelationInput
11382
12654
  skus?: SkuOrderByRelationAggregateInput
12655
+ brand?: BrandOrderByWithRelationInput
11383
12656
  }
11384
12657
 
11385
12658
  export type ProductWhereUniqueInput = Prisma.AtLeast<{
@@ -11388,7 +12661,7 @@ export namespace Prisma {
11388
12661
  OR?: ProductWhereInput[]
11389
12662
  NOT?: ProductWhereInput | ProductWhereInput[]
11390
12663
  name?: StringFilter<"Product"> | string
11391
- title?: StringFilter<"Product"> | string
12664
+ brandId?: UuidNullableFilter<"Product"> | string | null
11392
12665
  description?: StringFilter<"Product"> | string
11393
12666
  keywords?: StringFilter<"Product"> | string
11394
12667
  categoryId?: UuidFilter<"Product"> | string
@@ -11399,12 +12672,13 @@ export namespace Prisma {
11399
12672
  updatedAt?: DateTimeFilter<"Product"> | Date | string
11400
12673
  category?: XOR<CategoryScalarRelationFilter, CategoryWhereInput>
11401
12674
  skus?: SkuListRelationFilter
12675
+ brand?: XOR<BrandNullableScalarRelationFilter, BrandWhereInput> | null
11402
12676
  }, "id">
11403
12677
 
11404
12678
  export type ProductOrderByWithAggregationInput = {
11405
12679
  id?: SortOrder
11406
12680
  name?: SortOrder
11407
- title?: SortOrder
12681
+ brandId?: SortOrderInput | SortOrder
11408
12682
  description?: SortOrder
11409
12683
  keywords?: SortOrder
11410
12684
  categoryId?: SortOrder
@@ -11426,7 +12700,7 @@ export namespace Prisma {
11426
12700
  NOT?: ProductScalarWhereWithAggregatesInput | ProductScalarWhereWithAggregatesInput[]
11427
12701
  id?: UuidWithAggregatesFilter<"Product"> | string
11428
12702
  name?: StringWithAggregatesFilter<"Product"> | string
11429
- title?: StringWithAggregatesFilter<"Product"> | string
12703
+ brandId?: UuidNullableWithAggregatesFilter<"Product"> | string | null
11430
12704
  description?: StringWithAggregatesFilter<"Product"> | string
11431
12705
  keywords?: StringWithAggregatesFilter<"Product"> | string
11432
12706
  categoryId?: UuidWithAggregatesFilter<"Product"> | string
@@ -11667,7 +12941,6 @@ export namespace Prisma {
11667
12941
  skuNo?: StringFilter<"Sku"> | string
11668
12942
  productId?: UuidFilter<"Sku"> | string
11669
12943
  price?: BigIntFilter<"Sku"> | bigint | number
11670
- brand?: StringNullableFilter<"Sku"> | string | null
11671
12944
  media?: JsonNullableFilter<"Sku">
11672
12945
  inactive?: BoolNullableFilter<"Sku"> | boolean | null
11673
12946
  createdAt?: DateTimeFilter<"Sku"> | Date | string
@@ -11681,7 +12954,6 @@ export namespace Prisma {
11681
12954
  skuNo?: SortOrder
11682
12955
  productId?: SortOrder
11683
12956
  price?: SortOrder
11684
- brand?: SortOrderInput | SortOrder
11685
12957
  media?: SortOrderInput | SortOrder
11686
12958
  inactive?: SortOrderInput | SortOrder
11687
12959
  createdAt?: SortOrder
@@ -11698,7 +12970,6 @@ export namespace Prisma {
11698
12970
  NOT?: SkuWhereInput | SkuWhereInput[]
11699
12971
  productId?: UuidFilter<"Sku"> | string
11700
12972
  price?: BigIntFilter<"Sku"> | bigint | number
11701
- brand?: StringNullableFilter<"Sku"> | string | null
11702
12973
  media?: JsonNullableFilter<"Sku">
11703
12974
  inactive?: BoolNullableFilter<"Sku"> | boolean | null
11704
12975
  createdAt?: DateTimeFilter<"Sku"> | Date | string
@@ -11712,7 +12983,6 @@ export namespace Prisma {
11712
12983
  skuNo?: SortOrder
11713
12984
  productId?: SortOrder
11714
12985
  price?: SortOrder
11715
- brand?: SortOrderInput | SortOrder
11716
12986
  media?: SortOrderInput | SortOrder
11717
12987
  inactive?: SortOrderInput | SortOrder
11718
12988
  createdAt?: SortOrder
@@ -11732,7 +13002,6 @@ export namespace Prisma {
11732
13002
  skuNo?: StringWithAggregatesFilter<"Sku"> | string
11733
13003
  productId?: UuidWithAggregatesFilter<"Sku"> | string
11734
13004
  price?: BigIntWithAggregatesFilter<"Sku"> | bigint | number
11735
- brand?: StringNullableWithAggregatesFilter<"Sku"> | string | null
11736
13005
  media?: JsonNullableWithAggregatesFilter<"Sku">
11737
13006
  inactive?: BoolNullableWithAggregatesFilter<"Sku"> | boolean | null
11738
13007
  createdAt?: DateTimeWithAggregatesFilter<"Sku"> | Date | string
@@ -11935,10 +13204,69 @@ export namespace Prisma {
11935
13204
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
11936
13205
  }
11937
13206
 
13207
+ export type BrandCreateInput = {
13208
+ id?: string
13209
+ code: string
13210
+ name: string
13211
+ createdAt?: Date | string
13212
+ updatedAt?: Date | string
13213
+ products?: ProductCreateNestedManyWithoutBrandInput
13214
+ }
13215
+
13216
+ export type BrandUncheckedCreateInput = {
13217
+ id?: string
13218
+ code: string
13219
+ name: string
13220
+ createdAt?: Date | string
13221
+ updatedAt?: Date | string
13222
+ products?: ProductUncheckedCreateNestedManyWithoutBrandInput
13223
+ }
13224
+
13225
+ export type BrandUpdateInput = {
13226
+ id?: StringFieldUpdateOperationsInput | string
13227
+ code?: StringFieldUpdateOperationsInput | string
13228
+ name?: StringFieldUpdateOperationsInput | string
13229
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
13230
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
13231
+ products?: ProductUpdateManyWithoutBrandNestedInput
13232
+ }
13233
+
13234
+ export type BrandUncheckedUpdateInput = {
13235
+ id?: StringFieldUpdateOperationsInput | string
13236
+ code?: StringFieldUpdateOperationsInput | string
13237
+ name?: StringFieldUpdateOperationsInput | string
13238
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
13239
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
13240
+ products?: ProductUncheckedUpdateManyWithoutBrandNestedInput
13241
+ }
13242
+
13243
+ export type BrandCreateManyInput = {
13244
+ id?: string
13245
+ code: string
13246
+ name: string
13247
+ createdAt?: Date | string
13248
+ updatedAt?: Date | string
13249
+ }
13250
+
13251
+ export type BrandUpdateManyMutationInput = {
13252
+ id?: StringFieldUpdateOperationsInput | string
13253
+ code?: StringFieldUpdateOperationsInput | string
13254
+ name?: StringFieldUpdateOperationsInput | string
13255
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
13256
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
13257
+ }
13258
+
13259
+ export type BrandUncheckedUpdateManyInput = {
13260
+ id?: StringFieldUpdateOperationsInput | string
13261
+ code?: StringFieldUpdateOperationsInput | string
13262
+ name?: StringFieldUpdateOperationsInput | string
13263
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
13264
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
13265
+ }
13266
+
11938
13267
  export type ProductCreateInput = {
11939
13268
  id?: string
11940
13269
  name: string
11941
- title: string
11942
13270
  description: string
11943
13271
  keywords: string
11944
13272
  viewedCount?: number
@@ -11948,12 +13276,13 @@ export namespace Prisma {
11948
13276
  updatedAt?: Date | string
11949
13277
  category: CategoryCreateNestedOneWithoutProductsInput
11950
13278
  skus?: SkuCreateNestedManyWithoutProductInput
13279
+ brand?: BrandCreateNestedOneWithoutProductsInput
11951
13280
  }
11952
13281
 
11953
13282
  export type ProductUncheckedCreateInput = {
11954
13283
  id?: string
11955
13284
  name: string
11956
- title: string
13285
+ brandId?: string | null
11957
13286
  description: string
11958
13287
  keywords: string
11959
13288
  categoryId: string
@@ -11968,7 +13297,6 @@ export namespace Prisma {
11968
13297
  export type ProductUpdateInput = {
11969
13298
  id?: StringFieldUpdateOperationsInput | string
11970
13299
  name?: StringFieldUpdateOperationsInput | string
11971
- title?: StringFieldUpdateOperationsInput | string
11972
13300
  description?: StringFieldUpdateOperationsInput | string
11973
13301
  keywords?: StringFieldUpdateOperationsInput | string
11974
13302
  viewedCount?: IntFieldUpdateOperationsInput | number
@@ -11978,12 +13306,13 @@ export namespace Prisma {
11978
13306
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
11979
13307
  category?: CategoryUpdateOneRequiredWithoutProductsNestedInput
11980
13308
  skus?: SkuUpdateManyWithoutProductNestedInput
13309
+ brand?: BrandUpdateOneWithoutProductsNestedInput
11981
13310
  }
11982
13311
 
11983
13312
  export type ProductUncheckedUpdateInput = {
11984
13313
  id?: StringFieldUpdateOperationsInput | string
11985
13314
  name?: StringFieldUpdateOperationsInput | string
11986
- title?: StringFieldUpdateOperationsInput | string
13315
+ brandId?: NullableStringFieldUpdateOperationsInput | string | null
11987
13316
  description?: StringFieldUpdateOperationsInput | string
11988
13317
  keywords?: StringFieldUpdateOperationsInput | string
11989
13318
  categoryId?: StringFieldUpdateOperationsInput | string
@@ -11998,7 +13327,7 @@ export namespace Prisma {
11998
13327
  export type ProductCreateManyInput = {
11999
13328
  id?: string
12000
13329
  name: string
12001
- title: string
13330
+ brandId?: string | null
12002
13331
  description: string
12003
13332
  keywords: string
12004
13333
  categoryId: string
@@ -12012,7 +13341,6 @@ export namespace Prisma {
12012
13341
  export type ProductUpdateManyMutationInput = {
12013
13342
  id?: StringFieldUpdateOperationsInput | string
12014
13343
  name?: StringFieldUpdateOperationsInput | string
12015
- title?: StringFieldUpdateOperationsInput | string
12016
13344
  description?: StringFieldUpdateOperationsInput | string
12017
13345
  keywords?: StringFieldUpdateOperationsInput | string
12018
13346
  viewedCount?: IntFieldUpdateOperationsInput | number
@@ -12025,7 +13353,7 @@ export namespace Prisma {
12025
13353
  export type ProductUncheckedUpdateManyInput = {
12026
13354
  id?: StringFieldUpdateOperationsInput | string
12027
13355
  name?: StringFieldUpdateOperationsInput | string
12028
- title?: StringFieldUpdateOperationsInput | string
13356
+ brandId?: NullableStringFieldUpdateOperationsInput | string | null
12029
13357
  description?: StringFieldUpdateOperationsInput | string
12030
13358
  keywords?: StringFieldUpdateOperationsInput | string
12031
13359
  categoryId?: StringFieldUpdateOperationsInput | string
@@ -12283,7 +13611,6 @@ export namespace Prisma {
12283
13611
  id?: string
12284
13612
  skuNo: string
12285
13613
  price: bigint | number
12286
- brand?: string | null
12287
13614
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12288
13615
  inactive?: boolean | null
12289
13616
  createdAt?: Date | string
@@ -12297,7 +13624,6 @@ export namespace Prisma {
12297
13624
  skuNo: string
12298
13625
  productId: string
12299
13626
  price: bigint | number
12300
- brand?: string | null
12301
13627
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12302
13628
  inactive?: boolean | null
12303
13629
  createdAt?: Date | string
@@ -12309,7 +13635,6 @@ export namespace Prisma {
12309
13635
  id?: StringFieldUpdateOperationsInput | string
12310
13636
  skuNo?: StringFieldUpdateOperationsInput | string
12311
13637
  price?: BigIntFieldUpdateOperationsInput | bigint | number
12312
- brand?: NullableStringFieldUpdateOperationsInput | string | null
12313
13638
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12314
13639
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
12315
13640
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -12323,7 +13648,6 @@ export namespace Prisma {
12323
13648
  skuNo?: StringFieldUpdateOperationsInput | string
12324
13649
  productId?: StringFieldUpdateOperationsInput | string
12325
13650
  price?: BigIntFieldUpdateOperationsInput | bigint | number
12326
- brand?: NullableStringFieldUpdateOperationsInput | string | null
12327
13651
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12328
13652
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
12329
13653
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -12336,7 +13660,6 @@ export namespace Prisma {
12336
13660
  skuNo: string
12337
13661
  productId: string
12338
13662
  price: bigint | number
12339
- brand?: string | null
12340
13663
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12341
13664
  inactive?: boolean | null
12342
13665
  createdAt?: Date | string
@@ -12347,7 +13670,6 @@ export namespace Prisma {
12347
13670
  id?: StringFieldUpdateOperationsInput | string
12348
13671
  skuNo?: StringFieldUpdateOperationsInput | string
12349
13672
  price?: BigIntFieldUpdateOperationsInput | bigint | number
12350
- brand?: NullableStringFieldUpdateOperationsInput | string | null
12351
13673
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12352
13674
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
12353
13675
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -12359,7 +13681,6 @@ export namespace Prisma {
12359
13681
  skuNo?: StringFieldUpdateOperationsInput | string
12360
13682
  productId?: StringFieldUpdateOperationsInput | string
12361
13683
  price?: BigIntFieldUpdateOperationsInput | bigint | number
12362
- brand?: NullableStringFieldUpdateOperationsInput | string | null
12363
13684
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
12364
13685
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
12365
13686
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -12688,6 +14009,30 @@ export namespace Prisma {
12688
14009
  _min?: NestedIntNullableFilter<$PrismaModel>
12689
14010
  _max?: NestedIntNullableFilter<$PrismaModel>
12690
14011
  }
14012
+
14013
+ export type BrandCountOrderByAggregateInput = {
14014
+ id?: SortOrder
14015
+ code?: SortOrder
14016
+ name?: SortOrder
14017
+ createdAt?: SortOrder
14018
+ updatedAt?: SortOrder
14019
+ }
14020
+
14021
+ export type BrandMaxOrderByAggregateInput = {
14022
+ id?: SortOrder
14023
+ code?: SortOrder
14024
+ name?: SortOrder
14025
+ createdAt?: SortOrder
14026
+ updatedAt?: SortOrder
14027
+ }
14028
+
14029
+ export type BrandMinOrderByAggregateInput = {
14030
+ id?: SortOrder
14031
+ code?: SortOrder
14032
+ name?: SortOrder
14033
+ createdAt?: SortOrder
14034
+ updatedAt?: SortOrder
14035
+ }
12691
14036
  export type JsonFilter<$PrismaModel = never> =
12692
14037
  | PatchUndefined<
12693
14038
  Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
@@ -12718,6 +14063,11 @@ export namespace Prisma {
12718
14063
  none?: SkuWhereInput
12719
14064
  }
12720
14065
 
14066
+ export type BrandNullableScalarRelationFilter = {
14067
+ is?: BrandWhereInput | null
14068
+ isNot?: BrandWhereInput | null
14069
+ }
14070
+
12721
14071
  export type SkuOrderByRelationAggregateInput = {
12722
14072
  _count?: SortOrder
12723
14073
  }
@@ -12725,7 +14075,7 @@ export namespace Prisma {
12725
14075
  export type ProductCountOrderByAggregateInput = {
12726
14076
  id?: SortOrder
12727
14077
  name?: SortOrder
12728
- title?: SortOrder
14078
+ brandId?: SortOrder
12729
14079
  description?: SortOrder
12730
14080
  keywords?: SortOrder
12731
14081
  categoryId?: SortOrder
@@ -12743,7 +14093,7 @@ export namespace Prisma {
12743
14093
  export type ProductMaxOrderByAggregateInput = {
12744
14094
  id?: SortOrder
12745
14095
  name?: SortOrder
12746
- title?: SortOrder
14096
+ brandId?: SortOrder
12747
14097
  description?: SortOrder
12748
14098
  keywords?: SortOrder
12749
14099
  categoryId?: SortOrder
@@ -12756,7 +14106,7 @@ export namespace Prisma {
12756
14106
  export type ProductMinOrderByAggregateInput = {
12757
14107
  id?: SortOrder
12758
14108
  name?: SortOrder
12759
- title?: SortOrder
14109
+ brandId?: SortOrder
12760
14110
  description?: SortOrder
12761
14111
  keywords?: SortOrder
12762
14112
  categoryId?: SortOrder
@@ -13063,7 +14413,6 @@ export namespace Prisma {
13063
14413
  skuNo?: SortOrder
13064
14414
  productId?: SortOrder
13065
14415
  price?: SortOrder
13066
- brand?: SortOrder
13067
14416
  media?: SortOrder
13068
14417
  inactive?: SortOrder
13069
14418
  createdAt?: SortOrder
@@ -13079,7 +14428,6 @@ export namespace Prisma {
13079
14428
  skuNo?: SortOrder
13080
14429
  productId?: SortOrder
13081
14430
  price?: SortOrder
13082
- brand?: SortOrder
13083
14431
  inactive?: SortOrder
13084
14432
  createdAt?: SortOrder
13085
14433
  updatedAt?: SortOrder
@@ -13090,7 +14438,6 @@ export namespace Prisma {
13090
14438
  skuNo?: SortOrder
13091
14439
  productId?: SortOrder
13092
14440
  price?: SortOrder
13093
- brand?: SortOrder
13094
14441
  inactive?: SortOrder
13095
14442
  createdAt?: SortOrder
13096
14443
  updatedAt?: SortOrder
@@ -13344,6 +14691,48 @@ export namespace Prisma {
13344
14691
  update?: XOR<XOR<CategoryUpdateToOneWithWhereWithoutCategoriesAttributesInput, CategoryUpdateWithoutCategoriesAttributesInput>, CategoryUncheckedUpdateWithoutCategoriesAttributesInput>
13345
14692
  }
13346
14693
 
14694
+ export type ProductCreateNestedManyWithoutBrandInput = {
14695
+ create?: XOR<ProductCreateWithoutBrandInput, ProductUncheckedCreateWithoutBrandInput> | ProductCreateWithoutBrandInput[] | ProductUncheckedCreateWithoutBrandInput[]
14696
+ connectOrCreate?: ProductCreateOrConnectWithoutBrandInput | ProductCreateOrConnectWithoutBrandInput[]
14697
+ createMany?: ProductCreateManyBrandInputEnvelope
14698
+ connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14699
+ }
14700
+
14701
+ export type ProductUncheckedCreateNestedManyWithoutBrandInput = {
14702
+ create?: XOR<ProductCreateWithoutBrandInput, ProductUncheckedCreateWithoutBrandInput> | ProductCreateWithoutBrandInput[] | ProductUncheckedCreateWithoutBrandInput[]
14703
+ connectOrCreate?: ProductCreateOrConnectWithoutBrandInput | ProductCreateOrConnectWithoutBrandInput[]
14704
+ createMany?: ProductCreateManyBrandInputEnvelope
14705
+ connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14706
+ }
14707
+
14708
+ export type ProductUpdateManyWithoutBrandNestedInput = {
14709
+ create?: XOR<ProductCreateWithoutBrandInput, ProductUncheckedCreateWithoutBrandInput> | ProductCreateWithoutBrandInput[] | ProductUncheckedCreateWithoutBrandInput[]
14710
+ connectOrCreate?: ProductCreateOrConnectWithoutBrandInput | ProductCreateOrConnectWithoutBrandInput[]
14711
+ upsert?: ProductUpsertWithWhereUniqueWithoutBrandInput | ProductUpsertWithWhereUniqueWithoutBrandInput[]
14712
+ createMany?: ProductCreateManyBrandInputEnvelope
14713
+ set?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14714
+ disconnect?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14715
+ delete?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14716
+ connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14717
+ update?: ProductUpdateWithWhereUniqueWithoutBrandInput | ProductUpdateWithWhereUniqueWithoutBrandInput[]
14718
+ updateMany?: ProductUpdateManyWithWhereWithoutBrandInput | ProductUpdateManyWithWhereWithoutBrandInput[]
14719
+ deleteMany?: ProductScalarWhereInput | ProductScalarWhereInput[]
14720
+ }
14721
+
14722
+ export type ProductUncheckedUpdateManyWithoutBrandNestedInput = {
14723
+ create?: XOR<ProductCreateWithoutBrandInput, ProductUncheckedCreateWithoutBrandInput> | ProductCreateWithoutBrandInput[] | ProductUncheckedCreateWithoutBrandInput[]
14724
+ connectOrCreate?: ProductCreateOrConnectWithoutBrandInput | ProductCreateOrConnectWithoutBrandInput[]
14725
+ upsert?: ProductUpsertWithWhereUniqueWithoutBrandInput | ProductUpsertWithWhereUniqueWithoutBrandInput[]
14726
+ createMany?: ProductCreateManyBrandInputEnvelope
14727
+ set?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14728
+ disconnect?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14729
+ delete?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14730
+ connect?: ProductWhereUniqueInput | ProductWhereUniqueInput[]
14731
+ update?: ProductUpdateWithWhereUniqueWithoutBrandInput | ProductUpdateWithWhereUniqueWithoutBrandInput[]
14732
+ updateMany?: ProductUpdateManyWithWhereWithoutBrandInput | ProductUpdateManyWithWhereWithoutBrandInput[]
14733
+ deleteMany?: ProductScalarWhereInput | ProductScalarWhereInput[]
14734
+ }
14735
+
13347
14736
  export type CategoryCreateNestedOneWithoutProductsInput = {
13348
14737
  create?: XOR<CategoryCreateWithoutProductsInput, CategoryUncheckedCreateWithoutProductsInput>
13349
14738
  connectOrCreate?: CategoryCreateOrConnectWithoutProductsInput
@@ -13357,6 +14746,12 @@ export namespace Prisma {
13357
14746
  connect?: SkuWhereUniqueInput | SkuWhereUniqueInput[]
13358
14747
  }
13359
14748
 
14749
+ export type BrandCreateNestedOneWithoutProductsInput = {
14750
+ create?: XOR<BrandCreateWithoutProductsInput, BrandUncheckedCreateWithoutProductsInput>
14751
+ connectOrCreate?: BrandCreateOrConnectWithoutProductsInput
14752
+ connect?: BrandWhereUniqueInput
14753
+ }
14754
+
13360
14755
  export type SkuUncheckedCreateNestedManyWithoutProductInput = {
13361
14756
  create?: XOR<SkuCreateWithoutProductInput, SkuUncheckedCreateWithoutProductInput> | SkuCreateWithoutProductInput[] | SkuUncheckedCreateWithoutProductInput[]
13362
14757
  connectOrCreate?: SkuCreateOrConnectWithoutProductInput | SkuCreateOrConnectWithoutProductInput[]
@@ -13386,6 +14781,16 @@ export namespace Prisma {
13386
14781
  deleteMany?: SkuScalarWhereInput | SkuScalarWhereInput[]
13387
14782
  }
13388
14783
 
14784
+ export type BrandUpdateOneWithoutProductsNestedInput = {
14785
+ create?: XOR<BrandCreateWithoutProductsInput, BrandUncheckedCreateWithoutProductsInput>
14786
+ connectOrCreate?: BrandCreateOrConnectWithoutProductsInput
14787
+ upsert?: BrandUpsertWithoutProductsInput
14788
+ disconnect?: BrandWhereInput | boolean
14789
+ delete?: BrandWhereInput | boolean
14790
+ connect?: BrandWhereUniqueInput
14791
+ update?: XOR<XOR<BrandUpdateToOneWithWhereWithoutProductsInput, BrandUpdateWithoutProductsInput>, BrandUncheckedUpdateWithoutProductsInput>
14792
+ }
14793
+
13389
14794
  export type SkuUncheckedUpdateManyWithoutProductNestedInput = {
13390
14795
  create?: XOR<SkuCreateWithoutProductInput, SkuUncheckedCreateWithoutProductInput> | SkuCreateWithoutProductInput[] | SkuUncheckedCreateWithoutProductInput[]
13391
14796
  connectOrCreate?: SkuCreateOrConnectWithoutProductInput | SkuCreateOrConnectWithoutProductInput[]
@@ -13986,7 +15391,6 @@ export namespace Prisma {
13986
15391
  export type ProductCreateWithoutCategoryInput = {
13987
15392
  id?: string
13988
15393
  name: string
13989
- title: string
13990
15394
  description: string
13991
15395
  keywords: string
13992
15396
  viewedCount?: number
@@ -13995,12 +15399,13 @@ export namespace Prisma {
13995
15399
  createdAt?: Date | string
13996
15400
  updatedAt?: Date | string
13997
15401
  skus?: SkuCreateNestedManyWithoutProductInput
15402
+ brand?: BrandCreateNestedOneWithoutProductsInput
13998
15403
  }
13999
15404
 
14000
15405
  export type ProductUncheckedCreateWithoutCategoryInput = {
14001
15406
  id?: string
14002
15407
  name: string
14003
- title: string
15408
+ brandId?: string | null
14004
15409
  description: string
14005
15410
  keywords: string
14006
15411
  viewedCount?: number
@@ -14135,7 +15540,7 @@ export namespace Prisma {
14135
15540
  NOT?: ProductScalarWhereInput | ProductScalarWhereInput[]
14136
15541
  id?: UuidFilter<"Product"> | string
14137
15542
  name?: StringFilter<"Product"> | string
14138
- title?: StringFilter<"Product"> | string
15543
+ brandId?: UuidNullableFilter<"Product"> | string | null
14139
15544
  description?: StringFilter<"Product"> | string
14140
15545
  keywords?: StringFilter<"Product"> | string
14141
15546
  categoryId?: UuidFilter<"Product"> | string
@@ -14214,6 +15619,60 @@ export namespace Prisma {
14214
15619
  products?: ProductUncheckedUpdateManyWithoutCategoryNestedInput
14215
15620
  }
14216
15621
 
15622
+ export type ProductCreateWithoutBrandInput = {
15623
+ id?: string
15624
+ name: string
15625
+ description: string
15626
+ keywords: string
15627
+ viewedCount?: number
15628
+ status: string
15629
+ media:PrismaJson.PrismaMediaEntity
15630
+ createdAt?: Date | string
15631
+ updatedAt?: Date | string
15632
+ category: CategoryCreateNestedOneWithoutProductsInput
15633
+ skus?: SkuCreateNestedManyWithoutProductInput
15634
+ }
15635
+
15636
+ export type ProductUncheckedCreateWithoutBrandInput = {
15637
+ id?: string
15638
+ name: string
15639
+ description: string
15640
+ keywords: string
15641
+ categoryId: string
15642
+ viewedCount?: number
15643
+ status: string
15644
+ media:PrismaJson.PrismaMediaEntity
15645
+ createdAt?: Date | string
15646
+ updatedAt?: Date | string
15647
+ skus?: SkuUncheckedCreateNestedManyWithoutProductInput
15648
+ }
15649
+
15650
+ export type ProductCreateOrConnectWithoutBrandInput = {
15651
+ where: ProductWhereUniqueInput
15652
+ create: XOR<ProductCreateWithoutBrandInput, ProductUncheckedCreateWithoutBrandInput>
15653
+ }
15654
+
15655
+ export type ProductCreateManyBrandInputEnvelope = {
15656
+ data: ProductCreateManyBrandInput | ProductCreateManyBrandInput[]
15657
+ skipDuplicates?: boolean
15658
+ }
15659
+
15660
+ export type ProductUpsertWithWhereUniqueWithoutBrandInput = {
15661
+ where: ProductWhereUniqueInput
15662
+ update: XOR<ProductUpdateWithoutBrandInput, ProductUncheckedUpdateWithoutBrandInput>
15663
+ create: XOR<ProductCreateWithoutBrandInput, ProductUncheckedCreateWithoutBrandInput>
15664
+ }
15665
+
15666
+ export type ProductUpdateWithWhereUniqueWithoutBrandInput = {
15667
+ where: ProductWhereUniqueInput
15668
+ data: XOR<ProductUpdateWithoutBrandInput, ProductUncheckedUpdateWithoutBrandInput>
15669
+ }
15670
+
15671
+ export type ProductUpdateManyWithWhereWithoutBrandInput = {
15672
+ where: ProductScalarWhereInput
15673
+ data: XOR<ProductUpdateManyMutationInput, ProductUncheckedUpdateManyWithoutBrandInput>
15674
+ }
15675
+
14217
15676
  export type CategoryCreateWithoutProductsInput = {
14218
15677
  id?: string
14219
15678
  key: string
@@ -14249,7 +15708,6 @@ export namespace Prisma {
14249
15708
  id?: string
14250
15709
  skuNo: string
14251
15710
  price: bigint | number
14252
- brand?: string | null
14253
15711
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14254
15712
  inactive?: boolean | null
14255
15713
  createdAt?: Date | string
@@ -14261,7 +15719,6 @@ export namespace Prisma {
14261
15719
  id?: string
14262
15720
  skuNo: string
14263
15721
  price: bigint | number
14264
- brand?: string | null
14265
15722
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14266
15723
  inactive?: boolean | null
14267
15724
  createdAt?: Date | string
@@ -14279,6 +15736,27 @@ export namespace Prisma {
14279
15736
  skipDuplicates?: boolean
14280
15737
  }
14281
15738
 
15739
+ export type BrandCreateWithoutProductsInput = {
15740
+ id?: string
15741
+ code: string
15742
+ name: string
15743
+ createdAt?: Date | string
15744
+ updatedAt?: Date | string
15745
+ }
15746
+
15747
+ export type BrandUncheckedCreateWithoutProductsInput = {
15748
+ id?: string
15749
+ code: string
15750
+ name: string
15751
+ createdAt?: Date | string
15752
+ updatedAt?: Date | string
15753
+ }
15754
+
15755
+ export type BrandCreateOrConnectWithoutProductsInput = {
15756
+ where: BrandWhereUniqueInput
15757
+ create: XOR<BrandCreateWithoutProductsInput, BrandUncheckedCreateWithoutProductsInput>
15758
+ }
15759
+
14282
15760
  export type CategoryUpsertWithoutProductsInput = {
14283
15761
  update: XOR<CategoryUpdateWithoutProductsInput, CategoryUncheckedUpdateWithoutProductsInput>
14284
15762
  create: XOR<CategoryCreateWithoutProductsInput, CategoryUncheckedCreateWithoutProductsInput>
@@ -14340,13 +15818,39 @@ export namespace Prisma {
14340
15818
  skuNo?: StringFilter<"Sku"> | string
14341
15819
  productId?: UuidFilter<"Sku"> | string
14342
15820
  price?: BigIntFilter<"Sku"> | bigint | number
14343
- brand?: StringNullableFilter<"Sku"> | string | null
14344
15821
  media?: JsonNullableFilter<"Sku">
14345
15822
  inactive?: BoolNullableFilter<"Sku"> | boolean | null
14346
15823
  createdAt?: DateTimeFilter<"Sku"> | Date | string
14347
15824
  updatedAt?: DateTimeFilter<"Sku"> | Date | string
14348
15825
  }
14349
15826
 
15827
+ export type BrandUpsertWithoutProductsInput = {
15828
+ update: XOR<BrandUpdateWithoutProductsInput, BrandUncheckedUpdateWithoutProductsInput>
15829
+ create: XOR<BrandCreateWithoutProductsInput, BrandUncheckedCreateWithoutProductsInput>
15830
+ where?: BrandWhereInput
15831
+ }
15832
+
15833
+ export type BrandUpdateToOneWithWhereWithoutProductsInput = {
15834
+ where?: BrandWhereInput
15835
+ data: XOR<BrandUpdateWithoutProductsInput, BrandUncheckedUpdateWithoutProductsInput>
15836
+ }
15837
+
15838
+ export type BrandUpdateWithoutProductsInput = {
15839
+ id?: StringFieldUpdateOperationsInput | string
15840
+ code?: StringFieldUpdateOperationsInput | string
15841
+ name?: StringFieldUpdateOperationsInput | string
15842
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
15843
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
15844
+ }
15845
+
15846
+ export type BrandUncheckedUpdateWithoutProductsInput = {
15847
+ id?: StringFieldUpdateOperationsInput | string
15848
+ code?: StringFieldUpdateOperationsInput | string
15849
+ name?: StringFieldUpdateOperationsInput | string
15850
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
15851
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
15852
+ }
15853
+
14350
15854
  export type AttributeCreateWithoutSkuAttributesValuesInput = {
14351
15855
  id?: string
14352
15856
  name: string
@@ -14370,7 +15874,6 @@ export namespace Prisma {
14370
15874
  id?: string
14371
15875
  skuNo: string
14372
15876
  price: bigint | number
14373
- brand?: string | null
14374
15877
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14375
15878
  inactive?: boolean | null
14376
15879
  createdAt?: Date | string
@@ -14383,7 +15886,6 @@ export namespace Prisma {
14383
15886
  skuNo: string
14384
15887
  productId: string
14385
15888
  price: bigint | number
14386
- brand?: string | null
14387
15889
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14388
15890
  inactive?: boolean | null
14389
15891
  createdAt?: Date | string
@@ -14435,7 +15937,6 @@ export namespace Prisma {
14435
15937
  id?: StringFieldUpdateOperationsInput | string
14436
15938
  skuNo?: StringFieldUpdateOperationsInput | string
14437
15939
  price?: BigIntFieldUpdateOperationsInput | bigint | number
14438
- brand?: NullableStringFieldUpdateOperationsInput | string | null
14439
15940
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14440
15941
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
14441
15942
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -14448,7 +15949,6 @@ export namespace Prisma {
14448
15949
  skuNo?: StringFieldUpdateOperationsInput | string
14449
15950
  productId?: StringFieldUpdateOperationsInput | string
14450
15951
  price?: BigIntFieldUpdateOperationsInput | bigint | number
14451
- brand?: NullableStringFieldUpdateOperationsInput | string | null
14452
15952
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14453
15953
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
14454
15954
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -14484,7 +15984,6 @@ export namespace Prisma {
14484
15984
  export type ProductCreateWithoutSkusInput = {
14485
15985
  id?: string
14486
15986
  name: string
14487
- title: string
14488
15987
  description: string
14489
15988
  keywords: string
14490
15989
  viewedCount?: number
@@ -14493,12 +15992,13 @@ export namespace Prisma {
14493
15992
  createdAt?: Date | string
14494
15993
  updatedAt?: Date | string
14495
15994
  category: CategoryCreateNestedOneWithoutProductsInput
15995
+ brand?: BrandCreateNestedOneWithoutProductsInput
14496
15996
  }
14497
15997
 
14498
15998
  export type ProductUncheckedCreateWithoutSkusInput = {
14499
15999
  id?: string
14500
16000
  name: string
14501
- title: string
16001
+ brandId?: string | null
14502
16002
  description: string
14503
16003
  keywords: string
14504
16004
  categoryId: string
@@ -14544,7 +16044,6 @@ export namespace Prisma {
14544
16044
  export type ProductUpdateWithoutSkusInput = {
14545
16045
  id?: StringFieldUpdateOperationsInput | string
14546
16046
  name?: StringFieldUpdateOperationsInput | string
14547
- title?: StringFieldUpdateOperationsInput | string
14548
16047
  description?: StringFieldUpdateOperationsInput | string
14549
16048
  keywords?: StringFieldUpdateOperationsInput | string
14550
16049
  viewedCount?: IntFieldUpdateOperationsInput | number
@@ -14553,12 +16052,13 @@ export namespace Prisma {
14553
16052
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
14554
16053
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
14555
16054
  category?: CategoryUpdateOneRequiredWithoutProductsNestedInput
16055
+ brand?: BrandUpdateOneWithoutProductsNestedInput
14556
16056
  }
14557
16057
 
14558
16058
  export type ProductUncheckedUpdateWithoutSkusInput = {
14559
16059
  id?: StringFieldUpdateOperationsInput | string
14560
16060
  name?: StringFieldUpdateOperationsInput | string
14561
- title?: StringFieldUpdateOperationsInput | string
16061
+ brandId?: NullableStringFieldUpdateOperationsInput | string | null
14562
16062
  description?: StringFieldUpdateOperationsInput | string
14563
16063
  keywords?: StringFieldUpdateOperationsInput | string
14564
16064
  categoryId?: StringFieldUpdateOperationsInput | string
@@ -14614,7 +16114,7 @@ export namespace Prisma {
14614
16114
  export type ProductCreateManyCategoryInput = {
14615
16115
  id?: string
14616
16116
  name: string
14617
- title: string
16117
+ brandId?: string | null
14618
16118
  description: string
14619
16119
  keywords: string
14620
16120
  viewedCount?: number
@@ -14663,7 +16163,6 @@ export namespace Prisma {
14663
16163
  export type ProductUpdateWithoutCategoryInput = {
14664
16164
  id?: StringFieldUpdateOperationsInput | string
14665
16165
  name?: StringFieldUpdateOperationsInput | string
14666
- title?: StringFieldUpdateOperationsInput | string
14667
16166
  description?: StringFieldUpdateOperationsInput | string
14668
16167
  keywords?: StringFieldUpdateOperationsInput | string
14669
16168
  viewedCount?: IntFieldUpdateOperationsInput | number
@@ -14672,12 +16171,13 @@ export namespace Prisma {
14672
16171
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
14673
16172
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
14674
16173
  skus?: SkuUpdateManyWithoutProductNestedInput
16174
+ brand?: BrandUpdateOneWithoutProductsNestedInput
14675
16175
  }
14676
16176
 
14677
16177
  export type ProductUncheckedUpdateWithoutCategoryInput = {
14678
16178
  id?: StringFieldUpdateOperationsInput | string
14679
16179
  name?: StringFieldUpdateOperationsInput | string
14680
- title?: StringFieldUpdateOperationsInput | string
16180
+ brandId?: NullableStringFieldUpdateOperationsInput | string | null
14681
16181
  description?: StringFieldUpdateOperationsInput | string
14682
16182
  keywords?: StringFieldUpdateOperationsInput | string
14683
16183
  viewedCount?: IntFieldUpdateOperationsInput | number
@@ -14691,9 +16191,63 @@ export namespace Prisma {
14691
16191
  export type ProductUncheckedUpdateManyWithoutCategoryInput = {
14692
16192
  id?: StringFieldUpdateOperationsInput | string
14693
16193
  name?: StringFieldUpdateOperationsInput | string
14694
- title?: StringFieldUpdateOperationsInput | string
16194
+ brandId?: NullableStringFieldUpdateOperationsInput | string | null
16195
+ description?: StringFieldUpdateOperationsInput | string
16196
+ keywords?: StringFieldUpdateOperationsInput | string
16197
+ viewedCount?: IntFieldUpdateOperationsInput | number
16198
+ status?: StringFieldUpdateOperationsInput | string
16199
+ media?:PrismaJson.PrismaMediaEntity
16200
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
16201
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
16202
+ }
16203
+
16204
+ export type ProductCreateManyBrandInput = {
16205
+ id?: string
16206
+ name: string
16207
+ description: string
16208
+ keywords: string
16209
+ categoryId: string
16210
+ viewedCount?: number
16211
+ status: string
16212
+ media:PrismaJson.PrismaMediaEntity
16213
+ createdAt?: Date | string
16214
+ updatedAt?: Date | string
16215
+ }
16216
+
16217
+ export type ProductUpdateWithoutBrandInput = {
16218
+ id?: StringFieldUpdateOperationsInput | string
16219
+ name?: StringFieldUpdateOperationsInput | string
16220
+ description?: StringFieldUpdateOperationsInput | string
16221
+ keywords?: StringFieldUpdateOperationsInput | string
16222
+ viewedCount?: IntFieldUpdateOperationsInput | number
16223
+ status?: StringFieldUpdateOperationsInput | string
16224
+ media?:PrismaJson.PrismaMediaEntity
16225
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
16226
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
16227
+ category?: CategoryUpdateOneRequiredWithoutProductsNestedInput
16228
+ skus?: SkuUpdateManyWithoutProductNestedInput
16229
+ }
16230
+
16231
+ export type ProductUncheckedUpdateWithoutBrandInput = {
16232
+ id?: StringFieldUpdateOperationsInput | string
16233
+ name?: StringFieldUpdateOperationsInput | string
16234
+ description?: StringFieldUpdateOperationsInput | string
16235
+ keywords?: StringFieldUpdateOperationsInput | string
16236
+ categoryId?: StringFieldUpdateOperationsInput | string
16237
+ viewedCount?: IntFieldUpdateOperationsInput | number
16238
+ status?: StringFieldUpdateOperationsInput | string
16239
+ media?:PrismaJson.PrismaMediaEntity
16240
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
16241
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
16242
+ skus?: SkuUncheckedUpdateManyWithoutProductNestedInput
16243
+ }
16244
+
16245
+ export type ProductUncheckedUpdateManyWithoutBrandInput = {
16246
+ id?: StringFieldUpdateOperationsInput | string
16247
+ name?: StringFieldUpdateOperationsInput | string
14695
16248
  description?: StringFieldUpdateOperationsInput | string
14696
16249
  keywords?: StringFieldUpdateOperationsInput | string
16250
+ categoryId?: StringFieldUpdateOperationsInput | string
14697
16251
  viewedCount?: IntFieldUpdateOperationsInput | number
14698
16252
  status?: StringFieldUpdateOperationsInput | string
14699
16253
  media?:PrismaJson.PrismaMediaEntity
@@ -14705,7 +16259,6 @@ export namespace Prisma {
14705
16259
  id?: string
14706
16260
  skuNo: string
14707
16261
  price: bigint | number
14708
- brand?: string | null
14709
16262
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14710
16263
  inactive?: boolean | null
14711
16264
  createdAt?: Date | string
@@ -14716,7 +16269,6 @@ export namespace Prisma {
14716
16269
  id?: StringFieldUpdateOperationsInput | string
14717
16270
  skuNo?: StringFieldUpdateOperationsInput | string
14718
16271
  price?: BigIntFieldUpdateOperationsInput | bigint | number
14719
- brand?: NullableStringFieldUpdateOperationsInput | string | null
14720
16272
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14721
16273
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
14722
16274
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -14728,7 +16280,6 @@ export namespace Prisma {
14728
16280
  id?: StringFieldUpdateOperationsInput | string
14729
16281
  skuNo?: StringFieldUpdateOperationsInput | string
14730
16282
  price?: BigIntFieldUpdateOperationsInput | bigint | number
14731
- brand?: NullableStringFieldUpdateOperationsInput | string | null
14732
16283
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14733
16284
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
14734
16285
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -14740,7 +16291,6 @@ export namespace Prisma {
14740
16291
  id?: StringFieldUpdateOperationsInput | string
14741
16292
  skuNo?: StringFieldUpdateOperationsInput | string
14742
16293
  price?: BigIntFieldUpdateOperationsInput | bigint | number
14743
- brand?: NullableStringFieldUpdateOperationsInput | string | null
14744
16294
  media?:PrismaJson.PrismaMediaEntity | NullableJsonNullValueInput
14745
16295
  inactive?: NullableBoolFieldUpdateOperationsInput | boolean | null
14746
16296
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string