@@ -15,11 +15,12 @@ import {
1515import { ShopHistory , ShopItem , ShopOrder } from "../services/shop/shop-schemas" ;
1616import { UserAttendance , UserFollowing , UserInfo } from "../services/user/user-schemas" ;
1717import { AnyParamConstructor , IModelOptions } from "@typegoose/typegoose/lib/types" ;
18- import { StaffShift } from "../services/staff/staff-schemas" ;
18+ import { StaffShift , StaffInfo } from "../services/staff/staff-schemas" ;
1919import { NotificationMappings , NotificationMessages } from "../services/notification/notification-schemas" ;
2020import { PuzzleItem , PuzzleAnswer } from "../services/puzzle/puzzle-schemas" ;
2121import { Sponsor } from "../services/sponsor/sponsor-schemas" ;
2222import { StatisticLog } from "../services/statistic/statistic-schemas" ;
23+ import { Team } from "../services/team/team-schemas" ;
2324import Config from "./config" ;
2425import { RuntimeConfigModel } from "./runtimeConfig" ;
2526
@@ -39,6 +40,7 @@ export enum Group {
3940 SPONSOR = "sponsor" ,
4041 STAFF = "staff" ,
4142 STATISTIC = "statistic" ,
43+ TEAM = "team" ,
4244 USER = "user" ,
4345}
4446
@@ -102,6 +104,11 @@ enum SponsorCollection {
102104
103105enum StaffCollection {
104106 SHIFT = "shift" ,
107+ INFO = "info" ,
108+ }
109+
110+ enum TeamCollection {
111+ TEAMS = "teams" ,
105112}
106113
107114enum StatisticCollection {
@@ -204,10 +211,14 @@ export default class Models {
204211
205212 // Staff
206213 static StaffShift : Model < StaffShift > = getModel ( StaffShift , Group . STAFF , StaffCollection . SHIFT ) ;
214+ static StaffInfo : Model < StaffInfo > = getModel ( StaffInfo , Group . STAFF , StaffCollection . INFO ) ;
207215
208216 // Statistic
209217 static StatisticLog : Model < StatisticLog > = getModel ( StatisticLog , Group . STATISTIC , StatisticCollection . LOGS ) ;
210218
219+ // Team
220+ static Team : Model < Team > = getModel ( Team , Group . TEAM , TeamCollection . TEAMS ) ;
221+
211222 // User
212223 static UserInfo : Model < UserInfo > = getModel ( UserInfo , Group . USER , UserCollection . INFO ) ;
213224 static UserAttendance : Model < UserAttendance > = getModel ( UserAttendance , Group . USER , UserCollection . ATTENDANCE ) ;
0 commit comments