2021-03-24 21:11:14 +00:00
|
|
|
const mongoose = require('mongoose')
|
|
|
|
|
|
|
|
|
|
const settingsSchema = mongoose.Schema(
|
|
|
|
|
{
|
|
|
|
|
applicationName: { type: String, required: true, default: 'coolify' },
|
2021-04-19 07:46:05 +00:00
|
|
|
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)
|