---
# System prepended metadata

title: Roadmio MongoDB Style Guide
tags: [modern system]

---

###### tags: `modern system`
# Roadmio MongoDB Style Guide

## Naming
#### collection: 
1. Add 's' at the end of the collection name, e.g., accounts, devices
2. Use '_' underscore to divide the word, e.g., app_users, car_types
#### document:
1. camelCase, e.g., defaultDriverId, updatedAt, <font color="#f00">driverObd</font>, <font color="#f00">engineRpmCounter</font>
2. ...
## Field Structure (document)
- Required
    - **updatedAt**
        - Type **Date**
        - This key should be updated when this document is modified. 
        - Use moment().toISOString() in node js
        - Add annoation @DateTimeFormat(iso = DATE_TIME) in java/kotlin