addtl changes for Member.ts and Partner.ts

pull/1/head
Matthew 2024-04-01 20:04:34 -04:00
parent ad9a518b97
commit fc80647a41
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
2 changed files with 8 additions and 1 deletions

View File

@ -52,3 +52,5 @@ export default class Member {
@prop()
public additionalAcknowledgement: MemberAdditionalAcknowledgement[] | undefined;
}
export const MemberModel = getModelForClass(Member);

View File

@ -40,7 +40,10 @@ export enum PartnerCommissionType {
TRIAL,
}
export default class Partner extends Member {
export default class Partner {
@prop({ required: true, unique: true })
public discordID: string | undefined;
@prop({ required: true })
public roleType: PartnerRoleType | undefined;
@ -56,3 +59,5 @@ export default class Partner extends Member {
@prop()
public directReport: Partner | string | undefined;
}
export const PartnerModel = getModelForClass(Partner);