forked from engineering/crv2
Member.ts and Parner.ts classes shall implement interface SharedMemberAttributes
parent
8cd51cac26
commit
a1e59fa275
|
@ -5,6 +5,10 @@ import { prop, getModelForClass } from "@typegoose/typegoose"
|
|||
* Further attributes for class
|
||||
* */
|
||||
|
||||
export interface SharedMemberAttributes {
|
||||
discordID: string | undefined;
|
||||
}
|
||||
|
||||
export type MemberAdditionalAcknowledgement =
|
||||
"Chair of the Board of Governors" |
|
||||
"Vice Chair of the Board of Governors" |
|
||||
|
@ -39,7 +43,7 @@ export enum MemberUsedOperatingSystems {
|
|||
UBUNTU = "os-ubuntu",
|
||||
WIN = "os-win"
|
||||
}
|
||||
export default class Member {
|
||||
export default class Member implements SharedMemberAttributes {
|
||||
@prop({ required: true, unique: true })
|
||||
public discordID: string | undefined;
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ import Member from "./Member";
|
|||
* Further attributes for class
|
||||
* */
|
||||
|
||||
import { SharedMemberAttributes } from "./Member";
|
||||
|
||||
export type PartnerTitle =
|
||||
"Director of Engineering" |
|
||||
"Director of Operations" |
|
||||
|
@ -40,10 +42,13 @@ export enum PartnerCommissionType {
|
|||
TRIAL,
|
||||
}
|
||||
|
||||
export default class Partner {
|
||||
export default class Partner implements SharedMemberAttributes {
|
||||
@prop({ required: true, unique: true })
|
||||
public discordID: string | undefined;
|
||||
|
||||
@prop()
|
||||
public emailAddress: string | undefined;
|
||||
|
||||
@prop({ required: true })
|
||||
public roleType: PartnerRoleType | undefined;
|
||||
|
||||
|
|
Loading…
Reference in New Issue