- Login by email; board members are dashboard users (full access) - Forced password change on first login; forgot/reset password via email - Auto-send welcome email with set-password link when board member created - 5 attempts / 5 min rate limit on login endpoint - Board + Minutes tabs: drag-and-drop card reordering, persisted to DB - PATCH /api/board/reorder and /api/minutes/reorder endpoints - New minutes auto-insert at top (order 0) - ImagePicker: inline preview thumbnail before upload (board, gallery, sponsors) - Fix Minutes public sort: proper date parsing instead of broken string compare - Remove server/dist/ from git tracking (.gitignore)
19 lines
604 B
TypeScript
19 lines
604 B
TypeScript
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<IMinute>({
|
|
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<IMinute>('Minute', MinuteSchema);
|