Initial commit

This commit is contained in:
2025-03-06 12:24:20 +01:00
commit 7f3cefdc22
37 changed files with 6581 additions and 0 deletions

15
src/schemas/Group.ts Normal file
View File

@@ -0,0 +1,15 @@
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]
})
export default model("group", groupSchema)