Skip to content

Conversation

@SebasHidalgo
Copy link
Contributor

📝 Add condition and seller address to product model

🛠️ Issue

📖 Description

  • Updated the Product model by adding a condition field and linking products to sellers through a sellerAddress relation. Adjusted related DTOs, services, resolver, seed data, and tests to support the new fields. Also generated a Prisma migration for these changes.

✅ Changes made

  • Created the migration file in apps/backend/prisma/migrations.
  • Updated the prisma schema in apps/backend/prisma/schema.prisma.
  • Updated the seed.ts file in apps/backend/prisma/seed.ts.
  • Updated the create-product.input.ts and product.dto.ts files in apps/backend/src/modules/product/dto.
  • Updated the product.entity.ts file in apps/backend/src/modules/product/entities.
  • Updated the product.resolver.spec.ts and product.service.spec.ts files in apps/backend/src/modules/product

🖼️ Media (screenshots/videos)

Demo.mp4

@derianrddev
Copy link
Contributor

@SebasHidalgo Please resolve the merge conflicts

@derianrddev derianrddev added backend ODHack13 This issue will be available ONLY during the ODHack13 labels Apr 26, 2025
@derianrddev derianrddev self-requested a review April 26, 2025 22:37
Copy link
Contributor

@derianrddev derianrddev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you very much!

@derianrddev derianrddev merged commit 0133f53 into Kaizenode:main Apr 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend ODHack13 This issue will be available ONLY during the ODHack13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Add condition field and sellerAddress relation to Product model

2 participants