|
|
@@ -35,6 +35,10 @@ module.exports = function(crowi) {
|
|
|
userEvent.on('activated', userEvent.onActivated);
|
|
|
}
|
|
|
|
|
|
+ const editorCurrentSettingsSchema = new mongoose.Schema({
|
|
|
+ isTextLintEnable: { type: Boolean, default: true },
|
|
|
+ });
|
|
|
+
|
|
|
const userSchema = new mongoose.Schema({
|
|
|
userId: String,
|
|
|
image: String,
|
|
|
@@ -66,6 +70,7 @@ module.exports = function(crowi) {
|
|
|
lastLoginAt: { type: Date },
|
|
|
admin: { type: Boolean, default: 0, index: true },
|
|
|
isInvitationEmailSended: { type: Boolean, default: false },
|
|
|
+ editorCurrentSettings: editorCurrentSettingsSchema,
|
|
|
}, {
|
|
|
toObject: {
|
|
|
transform: (doc, ret, opt) => {
|