Skip to content

Commit 0f29048

Browse files
committed
Added content to the schema
1 parent a0828d8 commit 0f29048

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/models/schemas/System.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,26 @@ const SystemSchema = new Schema({
6161
},
6262
],
6363
},
64+
content: {
65+
available: { type: Boolean, default: true },
66+
service: {
67+
available: { type: Boolean, default: true },
68+
},
69+
maintenance: {
70+
status: { type: Boolean, default: false },
71+
message: { type: String, default: 'Page is under maintenance. Please try again later.' },
72+
},
73+
permission: {
74+
roles: [
75+
{
76+
type: String,
77+
enum: roles,
78+
required: true,
79+
default: ['user'],
80+
},
81+
],
82+
},
83+
},
6484
},
6585
],
6686
});

0 commit comments

Comments
 (0)