Naming Conventions
All table definitions should follow the following rules:
- Table names should be in snake_case.
- Table names should be singular.
- Table names should be in lowercase.
- Table names spaces should be replaced with underscores.
- Tables that hold static data should be prefixed with
lu_.
The drizzle definitions should follow the following rules:
- Table names should be in camelCase.
- Table names should be singular.
- Tables that hold static data should be postfixed with
LU.
Here is an example of a table definition that follows the above rules:
const serviceOrderLogActionLU = pgTable('lu_service_order_log_action', {
...table definition here
})Last updated on