Skip to content
On this page

metronom / Modules / Interfaces / Schema

Interface: Schema

Interfaces.Schema

Schema of Metronom model

Interface

Memberof

Model

Example

import { Types } from 'metronom';
const schema = {
  isAdmin: {
    type: Types.Boolean,
    default: false,
  }
};

Indexable

▪ [index: string]: { type: any ; default?: unknown }

Released under the MIT License.