Add hasThumbnails field to file schema
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced a new optional field `hasThumbnails` in the file schema to indicate the presence of thumbnail images. - Set the default value of `hasThumbnails` to false for improved data management.
This commit is contained in:
parent
49226290b6
commit
0b39eef045
@ -9,6 +9,7 @@ const fileSchema = new mongoose.Schema(
|
|||||||
extension: { required: true, type: String },
|
extension: { required: true, type: String },
|
||||||
size: { required: false, type: Number },
|
size: { required: false, type: Number },
|
||||||
metaData: { required: false, type: Object },
|
metaData: { required: false, type: Object },
|
||||||
|
hasThumbnails: { required: false, type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
{ timestamps: true }
|
{ timestamps: true }
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user