Updated the MetaData.ts model
This commit is contained in:
parent
72014cadf6
commit
f77ff6f03f
@ -1,4 +1,4 @@
|
|||||||
import { Schema } from "mongoose";
|
import { model, Schema } from "mongoose";
|
||||||
|
|
||||||
export interface IMetaData {
|
export interface IMetaData {
|
||||||
projectId: string,
|
projectId: string,
|
||||||
@ -6,6 +6,7 @@ export interface IMetaData {
|
|||||||
name: string,
|
name: string,
|
||||||
description?: string,
|
description?: string,
|
||||||
defaultValue?: string,
|
defaultValue?: string,
|
||||||
|
public: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const MetaDataSchema = new Schema<IMetaData>({
|
const MetaDataSchema = new Schema<IMetaData>({
|
||||||
@ -22,7 +23,11 @@ const MetaDataSchema = new Schema<IMetaData>({
|
|||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
description: String,
|
description: String,
|
||||||
defaultValue: String
|
defaultValue: String,
|
||||||
|
public: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export const MetaData = MetaDataSchema;
|
export const MetaData = model<IMetaData>("MetaData", MetaDataSchema);
|
Loading…
x
Reference in New Issue
Block a user