add auto capitalization api controllers and routes with mongo schema updated

This commit is contained in:
Hasan Mansoor
2023-02-02 05:27:07 +03:00
parent 55f0a491cb
commit 4722bb8fcd
3 changed files with 59 additions and 1 deletions
+5
View File
@@ -8,6 +8,7 @@ export interface IWorkspace {
name: string;
slug: string;
}>;
autoCapitalization: boolean;
}
const workspaceSchema = new Schema<IWorkspace>({
@@ -15,6 +16,10 @@ const workspaceSchema = new Schema<IWorkspace>({
type: String,
required: true
},
autoCapitalization: {
type: Boolean,
default: true,
},
organization: {
type: Schema.Types.ObjectId,
ref: 'Organization',