Created the MetaData.ts model
This commit is contained in:
parent
7c7abd7c21
commit
fc96aaa251
28
src/models/MetaData.ts
Normal file
28
src/models/MetaData.ts
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user