import mongoose, { Document, Schema } from 'mongoose'; export interface IMinute extends Document { date: string; meetingType: string; location: string; fileUrl: string; order: number; } const MinuteSchema = new Schema({ date: { type: String, required: true }, meetingType: { type: String, required: true, trim: true }, location: { type: String, required: true, trim: true }, fileUrl: { type: String, required: true }, order: { type: Number, default: 0 }, }, { timestamps: true }); export const Minute = mongoose.model('Minute', MinuteSchema);