20👍
Following the examples in the AWS documentation here and here would lead to the following conventions:
- Table names in Pascal Case (Upper Camel Case), e.g.
MyTable
. - Attribute names also in Pascal Case, e.g.
Id
,ProductCategory
etc.
Some of the examples are a bit inconsistent when it comes to acronym capitalization – with ISBN
and Id
in the first link and both CustomerID
and CustomerId
in the second link. Either style could be argued but I’d personally lean towards only capitalizing the first letter in an acronym. See here for more debate on this subject.
7👍
It’s free for all. I name tables as "users"
, "secret-files"
, "seen-blog-posts"
, and their attributes as "user.name"
, "date.recent.iso"
, etc.
- [Django]-Generating a non-sequential ID/PK for a Django Model
- [Django]-Mac OS X – EnvironmentError: mysql_config not found
- [Django]-Django equivalent for count and group by
Source:stackexchange.com