
Hello, I have a parent table called asset
and a child table called user
. user
table has a 1-1 relationship with asset
as 1 user can only use 1 asset. And 1 asset can only belong to 1 user.
The thing is, at the point of asset creation, it is possible that there is no user yet until after some times, which means user
could potentially be empty for a long time.
Now, I want to set up a relationship such that if I delete an asset
, it will delete the user
too. I have set up the relationship as Cascade. But, I noticed that when I delete the user
, it also deletes the asset
, which I don't want.
How do I set it such that:
- If I delete
asset
, it deletes its associateduser
- If I delete
user
, nothing happens toasset
Recommended threads
- Realtime Disconnects and Error: INVALID_...
Hi Support, we are still experiencing the issue and we are a subscriber on your platform under the account of charlesbcalague@gmail.com I just want to ask here...
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
