S3 file upload support
This commit is contained in:
parent
fb98314bf4
commit
778b629fde
15 changed files with 539 additions and 404 deletions
9
backend/src/app/models/S3FileLink.ts
Normal file
9
backend/src/app/models/S3FileLink.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Document, model, Schema } from "mongoose";
|
||||
|
||||
export type FileModel = Document & { key: string };
|
||||
|
||||
const FileSchema = new Schema<FileModel>({
|
||||
key: { type: String, required: true },
|
||||
});
|
||||
|
||||
export default model<FileModel>("files", FileSchema, "files");
|
||||
Loading…
Reference in a new issue