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
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...