initial commit

This commit is contained in:
2024-10-13 14:50:19 +00:00
commit dbdbf16bfe
34 changed files with 3035 additions and 0 deletions

14
models/Image.ts Normal file
View File

@@ -0,0 +1,14 @@
import {Schema, Types, model} from 'mongoose';
export interface Image{
_id: Types.ObjectId; // act as random generated filename
extension: string;
}
const imageSchema = new Schema<Image>({
extension: {type: String, required: true}
});
export const imageModel = model<Image>(
'imageModel', imageSchema
);