@thekitze@benjiDotSo This app is not open source, is it? I’m curious about your approach to db schema design for it, e.g. how you track streaks. Are they local to the journaling feature or global for all activities?
@jakubtepper Ciekawe czy ci wszyscy ludzie od „regulamin rzecz święta” mówiliby to samo gdyby ten punkt był skonstruowany na odwrót, tj. kobietom NIE WOLNO nosić stanika. Rozumiem wymagania związane z higieną na produkcji czy w kuchni ale tutaj chyba ktoś zabrnął za daleko.
@thekitze I've used pretty similar workaround to yours in the past but instead of storing the ID as a plain string, I've created the "Shareable" entity with optional relations to every shareable model. It's suboptimal to say the least but it's an option
@thekitze So it seems like the answer to your problem would be polymorphic relations. The issue with that is Prisma doesn't support them - https://t.co/jr8vQTJxjr
✨We're about to hit 10K stars on GitHub! ✨
To celebrate we’re giving away three Anker 575 USB-C docks. Retweet and star the Payload repo to enter.
Winners will be announced EOD Friday.