π 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
π 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
prisma/schema.prisma: Add a uniqueusernamefield to theUsermodel, and anisPublicboolean flag to theInventoryItemmodel.npx prisma migrate dev).app/routes/$username.tsxthat fetches only theisPublic = trueinventory items for the given user.purchasePrice) before returning the data to the client.