mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-08 02:39:44 -06:00
75 lines
1.1 KiB
JavaScript
Executable File
75 lines
1.1 KiB
JavaScript
Executable File
import mongoose from "mongoose";
|
|
|
|
const AppSettingsSchema = mongoose.Schema(
|
|
{
|
|
checkTTL: {
|
|
type: Number,
|
|
default: 30,
|
|
},
|
|
language: {
|
|
type: String,
|
|
default: "gb",
|
|
},
|
|
pagespeedApiKey: {
|
|
type: String,
|
|
},
|
|
systemEmailHost: {
|
|
type: String,
|
|
},
|
|
systemEmailPort: {
|
|
type: Number,
|
|
},
|
|
systemEmailAddress: {
|
|
type: String,
|
|
},
|
|
systemEmailPassword: {
|
|
type: String,
|
|
},
|
|
systemEmailUser: {
|
|
type: String,
|
|
},
|
|
systemEmailConnectionHost: {
|
|
type: String,
|
|
default: "localhost",
|
|
},
|
|
systemEmailTLSServername: {
|
|
type: String,
|
|
},
|
|
systemEmailSecure: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
systemEmailPool: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
systemEmailIgnoreTLS: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
systemEmailRequireTLS: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
systemEmailRejectUnauthorized: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
singleton: {
|
|
type: Boolean,
|
|
required: true,
|
|
unique: true,
|
|
default: true,
|
|
},
|
|
version: {
|
|
type: Number,
|
|
default: 1,
|
|
},
|
|
},
|
|
{
|
|
timestamps: true,
|
|
}
|
|
);
|
|
|
|
export default mongoose.model("AppSettings", AppSettingsSchema);
|