snake_case for table and field names.tbl_.id as the primary key.<referenced_table>_id.Default fields where applicable:
| Field | Description |
|---|---|
id | Unique identifier / primary key |
created_on | Creation date and time |
created_by | Creator |
changed_on | Last modification date and time |
changed_by | Last modifier |
status | Record state |
Only add standard fields where they serve a purpose.
NOT NULL unless the absence of a value has a defined meaning.is_active or has_error.PRIMARY KEY, FOREIGN KEY, NOT NULL, UNIQUE and CHECK to enforce data integrity.SELECT * where the result structure matters.
The HSE Way of Working:
A set of guidelines that recommend programming style, better practices, and methods for all our LabVIEW projects. We ask all our peers to follow these guidelines to help improve the readability of our shared source code and make software maintenance easier.