Skip to content

Commit

Permalink
Add conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 1, 2024
1 parent dad8707 commit dfa169b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions en/orm/database-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,12 @@ Where ``ArticleStatus`` contains something like::

.. _adding-custom-database-types:

Recommendation: Use a tinyint/smallint type here.

Conventions for enums:
- The case is ``CamelCase``.
- Use `{Entity}{ColumnName}` as enum name to auto-map during baking to your baked (form) fields.

Adding Custom Types
-------------------

Expand Down

0 comments on commit dfa169b

Please sign in to comment.