Image testing

This commit is contained in:
oitsjustjose 2022-04-15 20:04:07 -05:00
commit aca54e6535
4 changed files with 53 additions and 2 deletions

View file

@ -4,6 +4,7 @@ export type ProductModel = Document & {
name: string;
quantity: number;
price: number;
images: string[];
hidden: boolean;
};
@ -20,6 +21,13 @@ const ProductSchema = new Schema<ProductModel>({
type: Number,
required: true,
},
images: [
{
type: String,
required: true,
default: [],
},
],
hidden: {
type: Boolean,
required: true,