ID needed in delete()?
I'm using Postgres and have a schema for Discord Members. To make it simple with join tables, the primary key (named
When I then want to delete a member, I do not use the
However TypeScript is now throwing a fit because
sid) of the table is an auto-incrementing integer, then another unique index care of the guild ID and user ID combo.When I then want to delete a member, I do not use the
sid at all, since I also don't know what it would be without first querying it. So I use the unique guild ID and user ID combinationHowever TypeScript is now throwing a fit because
sid is required. Am I using this wrong or what's going on here?