TypeError: a.returning is not a function

My schema is the following as it's a hacky way around SingleStore not supporting multiple foreign keys (or unique keys for emails):
Was this page helpful?