v1.0.12 - Sveltekit migration (#44)
Changed the whole tech stack to SvelteKit which means: - Typescript - SSR - No fastify :( - Beta, but it's fine! Other changes: - Tailwind -> Tailwind JIT - A lot more
This commit is contained in:
17
src/models/Settings.ts
Normal file
17
src/models/Settings.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import mongoose from 'mongoose';
|
||||
const { Schema } = mongoose;
|
||||
export interface ISettings extends Document {
|
||||
applicationName: string;
|
||||
allowRegistration: string;
|
||||
sendErrors: boolean;
|
||||
}
|
||||
|
||||
const SettingsSchema = new Schema({
|
||||
applicationName: { type: String, required: true, default: 'coolify' },
|
||||
allowRegistration: { type: Boolean, required: true, default: false },
|
||||
sendErrors: { type: Boolean, required: true, default: true }
|
||||
});
|
||||
|
||||
SettingsSchema.set('timestamps', true);
|
||||
|
||||
export default mongoose.model('settings', SettingsSchema);
|
||||
Reference in New Issue
Block a user