Next, we are going to update our message model. We are going to save the labels, explicit content detection results, and Cloudinary upload details in the message, similar to what we have done with the Cloud Vision API response. Update server/models/message.ts as shown here:
// SNIPP SNIPP
safeSearchProps: {
type: Schema.Types.Mixed
},
explicitVideoAnnotation: [{
type: Schema.Types.Mixed,
default: []
}],
segmentLabelAnnotations: [{
type: Schema.Types.Mixed,
default: []
}]
// SNIPP SNIPP