forked from Yara724/api
18 lines
527 B
TypeScript
18 lines
527 B
TypeScript
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
|
|
import mongoose, { Types } from "mongoose";
|
|
|
|
@Schema({ versionKey: false, collection: "claim-video-capture" })
|
|
export class VideoCaptureModel extends mongoose.Document {
|
|
@Prop({ required: false, type: String })
|
|
path?: string;
|
|
|
|
@Prop({ required: false, type: String })
|
|
fileName?: string;
|
|
|
|
@Prop({ required: false, type: Types.ObjectId })
|
|
claimId?: Types.ObjectId;
|
|
}
|
|
|
|
export const VideoCaptureSchema =
|
|
SchemaFactory.createForClass(VideoCaptureModel);
|