yetitwo
06/07/2024, 1:33 PMnarang99
06/07/2024, 2:27 PMyetitwo
06/07/2024, 2:28 PMyetitwo
06/07/2024, 2:28 PMyetitwo
06/07/2024, 2:29 PMnarang99
06/07/2024, 2:35 PMorg:narang#owner@user:narang
where i mean that when you are an owner of an org, its your default org. But now the application needs to make sure semantically that its a strictly one-to-one relationship
the other way is to simply put owner
as column in user
table, but this can be a part of access logic (an owner can do anything in their org), so now I have to duplicate it in spice
so for this very case, im actually thinking of putting it in spice, and have the application make sure that it can only be a one-to-one relation
considering this specific usecase, does it warrant adding the one-to-one relation in spice? Im guessing i can add a caveat saying, owner can only be someone with the same uuid as the user (kinda hacky, but im actually ok with it)
note: not very confident with caveats rn (havent used them, just skimmed through it), might be wrong what i said. Im just making a guess on what i understand about ityetitwo
06/07/2024, 3:28 PMyetitwo
06/07/2024, 3:29 PMyetitwo
06/07/2024, 3:29 PM