diff --git a/src/models/MetaData.ts b/src/models/MetaData.ts new file mode 100644 index 0000000..fb3bd04 --- /dev/null +++ b/src/models/MetaData.ts @@ -0,0 +1,28 @@ +import { Schema } from "mongoose"; + +export interface IMetaData { + projectId: string, + type: string, + name: string, + description?: string, + defaultValue?: string, +} + +const MetaDataSchema = new Schema({ + projectId: { + type: String, + required: true + }, + type: { + type: String, + required: true + }, + name: { + type: String, + required: true + }, + description: String, + defaultValue: String +}); + +export const MetaData = MetaDataSchema; \ No newline at end of file