UNPKG

periodicjs

Version:

Periodic is a rapid enterprise application framework for data driven web and mobile applications.

30 lines (29 loc) 761 B
'use strict'; const mongoose = require('mongoose'); const Schema = mongoose.Schema; const ObjectId = Schema.ObjectId; const configSchema = new Schema({ id: ObjectId, filepath: String, environment: String, container: { type: String, default: 'periodicjs.container.default', }, config: Schema.Types.Mixed, createdat: { type: Date, 'default': Date.now, // index: true, }, updatedat: { type: Date, 'default': Date.now }, }); /** * name_of_file: string (e.g. 'content/config/extensions.json','content/config/environment/development.json','content/config/extensions/peridicjs.ext.dbseed.json') application_environment: string settings: schema_type_mixed */ module.exports = configSchema;