We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accounts
user
No description provided.
The text was updated successfully, but these errors were encountered:
refactor: rename account table to user (#485)
a3423a1
resolves #374 "user" needs to be quoted or namespaced in SQL because user is a reserved word in the language. Justification for doing this anyway: 1. We refer to "user" everywhere else in the JS code and we go to the trouble of ["renaming" fields from "account" to "user" in our queries](https://github.com/ipfs-shipyard/nft.storage/pull/485/files#diff-d2f63c0f47f000a546d34f098e45e9981f20eca7b8fccc3cfb35c95ab24fba47L81) and we have to [construct queries like `account_id: userId`](https://github.com/ipfs-shipyard/nft.storage/pull/485/files#diff-d2f63c0f47f000a546d34f098e45e9981f20eca7b8fccc3cfb35c95ab24fba47L81) because of it (confusing). 1. We actually don't need to quote or namespace prefix "user" when querying via postgREST and we don't often query directly in SQL (only in 1 stored procedure). 1. In my head I also find it difficult to square off one user having multiple "accounts". We don't support this right now but "account" suggests that we do. 1. IMO it is worth a small inconvenience on something we don't often do for an overall more consistent and less confusing code base.
alanshaw
Successfully merging a pull request may close this issue.
No description provided.
The text was updated successfully, but these errors were encountered: