[Django]-Naming conventions for DynamoDB?

20👍

Following the examples in the AWS documentation here and here would lead to the following conventions:

  1. Table names in Pascal Case (Upper Camel Case), e.g. MyTable.
  2. 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.

Leave a comment