coolify/api/models/Settings.js

13 lines
387 B
JavaScript
Raw Normal View History

2021-03-24 21:11:14 +00:00
const mongoose = require('mongoose')
const settingsSchema = mongoose.Schema(
{
applicationName: { type: String, required: true, default: 'coolify' },
allowRegistration: { type: Boolean, required: true, default: false },
sendErrors: { type: Boolean, required: true, default: true }
2021-03-24 21:11:14 +00:00
},
{ timestamps: true }
)
module.exports = mongoose.model('settings', settingsSchema)