cr-database/mongodb/CustomerPortal.ts

22 lines
414 B
TypeScript
Raw Permalink Normal View History

2022-02-28 12:57:43 -05:00
import { prop, getModelForClass } from '@typegoose/typegoose';
2022-02-28 11:51:44 -05:00
export default class CustomerPortal {
@prop({ required: true })
public key: string;
@prop({ required: true })
public username: string;
@prop({ required: true })
public userID: string;
@prop({ required: true })
public emailAddress: string;
@prop({ required: true })
public expiresOn: Date;
2022-02-28 12:00:48 -05:00
@prop()
2022-02-28 11:51:44 -05:00
public used: boolean;
}