Preamble: you may want to check the attached screenshot
Before Appwrite Cloud was moved to v1.4, I had 3 collections. The User, the CommunicationChannel and the CommunicationChannelToUser collection.
The CommunicationChannelToUser collection is an explicit many-to-many table, which also contains attributes. Attributes of the relation. Each row in CommunicationChannelToUser contained one userId and one communicationChannelId, each user and each communication channel could appear multiple times in this table. However the pair userId, communicationChannelId, needed to be unique.
How would this be represented with the new relations features? I don't seem to be able to create unique indexes on relationship attributes.
right...i don't think you can create a unique index on relationships at the moment..
you should probably 👍🏼 this issue: https://github.com/appwrite/appwrite/issues/5400
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...