Hello !
I am currently trying to develop a mobile shop application using flutter and appwrite, and have come across a problem when trying to adapt my data model (image 1) to appwrite's database system.
To do so, I have tried using appwrite's relationship system (image 2). In this case, I have a one to many relation from sale to product, and from product to sale.
However, this solution leaves no room for historisation of the data when the sale is made. Say I add a new stock to a product in the sale with a different buy_price , it doesn't look like I can know which stock was involved when the sale was created?
Would anyone be able to offer a solution to my problem, or clarify the situation if I am misunderstanding how relationships work? Thanks a lot! :terraLike:
Recommended threads
- Twitter post schema should look like?
If I design a Twitter clone using appwrite, how the twitter post schema should look like? Can't find good repository on GitHub The only tutorial that helped m...
- Firebase Auth and Appwrite as database
Hello everyone, Currently I have developed an application with Firebase as a database. However, because of the Firebase bill, I would like to migrate. I would ...
- 1M+ CSV row data to DB
I have a csv that I intend to add to a collection in my database but that csv has millions of rows. The process of adding each column and its rows under an at...