Created the MetaData.ts model

This commit is contained in:
Mathias Wagner 2023-08-02 01:14:53 +02:00
parent 7c7abd7c21
commit fc96aaa251
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

28
src/models/MetaData.ts Normal file
View File

@ -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<IMetaData>({
projectId: {
type: String,
required: true
},
type: {
type: String,
required: true
},
name: {
type: String,
required: true
},
description: String,
defaultValue: String
});
export const MetaData = MetaDataSchema;