MCPcopy Index your code
hub / github.com/TomDoesTech/REST-API-Tutorial / UserDocument

Interface UserDocument

src/model/user.model.ts:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import config from "config";
4
5export interface UserDocument extends mongoose.Document {
6 email: string;
7 name: string;
8 password: string;
9 createdAt: Date;
10 updatedAt: Date;
11 comparePassword(candidatePassword: string): Promise<boolean>;
12}
13
14const UserSchema = new mongoose.Schema(
15 {

Callers 1

validatePasswordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected