fix: Changed group assignment.

This commit is contained in:
2025-05-05 18:54:26 +02:00
parent 84244777e2
commit 2dc447a446
6 changed files with 17 additions and 80 deletions

View File

@@ -2,14 +2,10 @@ import { ObjectId, Schema, model } from "mongoose"
interface IGroup {
name: string;
rooms?: number[];
unames?: string[];
}
const groupSchema = new Schema<IGroup>({
name: {type: String, required: true},
rooms: [Schema.Types.Number],
unames: [Schema.Types.String]
name: {type: String, required: true}
})
export default model("group", groupSchema)