Make comment optional on the DB side

This commit is contained in:
Fred Boniface 2025-06-26 21:59:07 +01:00
parent e5a06db550
commit 7ac03cb1fd

View File

@ -11,7 +11,7 @@ const FaultSchema = new Schema<FaultType>({
const ReportSchema = new Schema<ReportDocument>({
unitNumber: { type: String, required: true },
reported: { type: String, required: true },
comments: { type: String, required: true },
comments: { type: String, required: false },
utcTimestamp: { type: String, required: true },
faults: { type: [FaultSchema], required: true },
});