cr-database/mongodb/Staff.ts

31 lines
443 B
TypeScript
Raw Normal View History

2022-02-28 11:51:44 -05:00
import { prop } from '@typegoose/typegoose';
export default class Staff {
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public name: string;
@prop({ required: true })
public userID: string;
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public title: string;
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public dept: string;
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public pn: string[];
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public emailAddress: string;
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public extension: string;
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public acknowledgements: string[];
2022-03-01 13:34:28 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public additionalRoles: string[];
}