Skip to content

Database Processing

The schema.process is a map of properties that control how data is stored and processed in the database.

For each schema model, you may define an entry in the process collection to control where items are stored. For example:

js
const DeviceSchema = {
    process: {
        Fault:   {
            enable: 'device'
        }
    },
    ...
}

Each map entry may contain the following properties:

PropertyTypeDescription
enablestringControl where the model is stored. Set to 'device' for on the device. Defaults to 'device'.

The "enable" property can be set to "device" if items of that type should be stored on the device.