added metadata on url model

This commit is contained in:
2023-01-13 18:54:58 -03:00
parent 856e01d339
commit 63ec99e6a5
4 changed files with 12 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ export interface IUrl {
url: string
dateCreated: Date
uploadedByUser: string
metaData: Object
}
export const urlSchema = new Schema<IUrl>(
@@ -27,6 +28,10 @@ export const urlSchema = new Schema<IUrl>(
type: String,
required: true,
},
metaData: {
type: Object,
required: true,
},
},
{ collection: 'url', timestamps: true }
)