usersusers, documentsdocuments, documentFragmentsdocumentFragments etc. Each have their own unique "primary key", so for example, in the users table, I have a field userIDuserID, in the documents table, I have documentIDdocumentID, etc.schema.tsschema.ts, I'm linking together using the v.idv.id, so for example, each document fragment has a field sourceDocument: v.id('documents')sourceDocument: v.id('documents').documentIDdocumentID and fragmentIDfragmentID field, and just use the _id that is generated? I originally had the custom field so I could "tag" them with a prefix that denoted what type, so for example: "doc_<UUID>".Join the Discord to ask follow-up questions and connect with the community
Join the Convex Discord! Explore Convex, the backend platform that keeps your app in sync.
16,164 Members
Join