Skip to content

Introduction

Column names play a pivotal role in ensuring clarity, consistency, and security. Reserved column names are set for several reasons, and these can vary based on the specific needs, practices, and conventions of the organization.

Standard naming convention

It is essential for companies to carefully plan and document their reserved column names, ensuring that they align with organizational goals, industry standards, and best practices.

Variable naming

Naming standards are important because they help keep the code consistent and predictable.

Reference: https://en.wikipedia.org/wiki/Naming_convention_(programming)

Purpose

  • To reduce the effort needed to read and understand source code.
  • To enable code reviews to focus on more important issues than arguing over syntax and naming standards.
  • To enable code quality review tools to focus their reporting mainly on significant issues other than syntax and style preferences.
  • To make it easier for someone who wasn’t involved in the project to quickly understand the content of tables and columns.

Data structure and formats

  • Naming conventions based on programming language used.
  • Standard column naming conventions reflect purpose and avoid abbreviations or acronyms.
  • Avoidance of reserved keywords based on software standards.

 

The following columns should only be used if they follow the structure in this guide

ID: (field)Typically used as a unique identifier for each record in a table.

Guidelines:

Use case: “ID” – format numerically for primary keys.

DateTime: (field) Indicates the date and time when the record was created/modified.

Guidelines:

Follow a consistent date-time format across all records.

Use case: “CreatedDate” Update automatically whenever a record is created.

Timestamp: Records the date and time when the record was last updated.

Guidelines:

Automatically updated upon modification.

CreatedBy/ModifiedBy: Represents the user or system responsible for creating/modifying the record.

Guidelines:

Use a standardized user identification format (System “UserID”). Include user or system identification. Denotes the user or system who created or modified the record.

Active(Is): Boolean value indicating whether the record is active or not.

Guidelines:

Use “True” or “False” values consistently.

Deleted(Is): Boolean value indicating whether the record has been marked as deleted.

Guidelines:

Utilize “True” or “False” values consistently.

Status: Represents the current status of the record, such as “Pending,” “Approved,” or “Rejected.”

Guidelines:

Define a list of allowed status values per system.

Comments: Allows users to add additional notes or comments about the record.

Guidelines:

Support text data of variable length defined by each system.

Location and Address: Defining features for GIS and mapping.

Guidelines:

Standardization for datasets to support mapping functions.

ID field

“ID” as a field name is widespread. However, a more readable and descriptive version would        be prefacing your classification. This also allows for foreign key relationships.

Basic formatExtended format
IDEmployeeID

Date and Time

ISO 8601 uses 24 hour clock system in hh:mm:ss format (do not use AM or PM) e.g. 13:00 is          equivalent to 1:00 PM

Extended format with hyphens is the most human-readable.

Calendar date – April 12, 1985

Date

Basic formatExtended formatExplanationExample
YYYYMMDDYYYY-MM-DDComplete calendar date19850412 , 1985-04-12  
YYYYWwwYYYY-WwwWeek date with accuracy reduced to week1985W01 , 1985-W01

Time of day

Basic formatExtended formatExplanationExample
hhmmsshh:mm:ssComplete local time120101 , 12:01:01
hhmm+hhmmhh:mm+hh:mmLocal time and the difference from UTC —reduced accuracy1201+0000 , 12:01+00:00

Datetime

Basic formatExtended formatExplanationExample
YYYYMMDD[T]hh:mmYYYY-MM-DD[T]hh:mmComplete full date and time, T (time) indicator19841201T13:00 , 1984-12-01T13:00
YYYYDDDThhmmYYYY-DDDThh-mmComplete ordinal date — reduced accuracy time of day1984349T1201 , 1984-349T12-01
YYYYMMDDhhmm,mYYYY-MM-DDhh:mm,mComplete calendar date — reduced accuracy time of day with one digit decimal fraction for minute — no time designator198401011201,m , 1984-01-0112:01,m  
YYYYMMDDTHH MMSS.mmmZYYYY-MM-DDTHH- MM-SS.mmmZFour-digit year, two-digit month, two-digit day, T (time) indicator, two-digit hour, two-digit minutes, two-digit seconds in Universal Time19840101T120100.000Z , 1984-01-01T12-01-00.000Z  

Created or modified by

Keeping audit logs for individual records always verify these are defined in metadata. Extended format or full UserID/Name is preferred to reduce confusion and is the most human-readable.

Basic formatExtended format
#######John Doe

Active or Deleted

Extended format is preferred to reduce confusion and is the most human-readable.

Basic formatExtended format
TTrue

Status

Record status should be clear with a predefined selection.

Basic formatExtended format
AActive

Comments

Any free-form string field should have limitations on the number of characters and type of characters defined by the system in use.

Basic formatExtended format
AlphanumericInclude special characters

Location (coordinates and addresses)

To provide consistency with mapping functions and display in use.

NameDescriptionData TypeRestrictionsValid Values
Full_AddressComplete address formatted by [House_No] + [Direction] + [Street_Name] + [Suffix].  TextDo not abbreviate the spelling of street349 S 200 E 325 N TERMINAL DR
House_NoHouse Number of address  TextNo abbreviations, ex: 13 TH S1300 S  
DirectionDirection of addressTextDo not spell out direction, ex: 1300 EAST1300 E
Street_NameStreet Name of addressTextDo not abbreviate the spelling of the streetWRIGHT BROTHERS DR
SuffixSuffix/ Street TypeText DR ST AVE BLD
UnitUnit or Suite of AddressTextDo not include it in Full_Address column, always put it in a separate column 
LatLatitudeInteger  
LonLongitudeInteger  
X_CoordX CoordinateIntegerIf exported from CAD, must include Coordinate System 
Y_CoordY CoordinateIntegerIf exported from CAD, must include Coordinate System 

GIS Frequently Asked Questions

GIS FAQs

Reference

Date time: https://en.wikipedia.org/wiki/ISO_8601