import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { HydratedDocument } from 'mongoose'; import { IFileRecord } from '../interfaces/file-record.interface'; @Schema({ _id: false }) export class FileRecord implements IFileRecord { @Prop({ type: Date, required: false }) createdAt: Date; @Prop({ type: Date, required: false }) updatedAt: Date; } export const FileRecordSchema = SchemaFactory.createForClass(FileRecord); export type FileRecordDocument = HydratedDocument;