Skip to content

feat(showroom): Database schema and public routingΒ #91

Description

@rushikesh-bobade

πŸš€ Problem Statement

FlipTrack is currently just an internal management tool. We want to empower our users to actually sell their inventory directly by offering them a public "Showroom" profile.

πŸ› οΈ Proposed Solution

We need to lay the backend groundwork for Public Showrooms. This involves updating the database schema to support public visibility and creating the dynamic routing structure.

βœ… Acceptance Criteria

  • Update prisma/schema.prisma: Add a unique username field to the User model, and an isPublic boolean flag to the InventoryItem model.
  • Create the database migration (npx prisma migrate dev).
  • Create a new dynamic route app/routes/$username.tsx that fetches only the isPublic = true inventory items for the given user.
  • Ensure the loader securely strips out sensitive financial data (like purchasePrice) before returning the data to the client.

Metadata

Metadata

Labels

ECSoC26Required label for ECSOC Sentinel scoringenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions