Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TomDoesTech/REST-API-Tutorial-Updated
/ UserDocument
Interface
UserDocument
src/models/user.model.ts:11–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
}
10
11
export
interface
UserDocument extends UserInput, mongoose.Document {
12
createdAt: Date;
13
updatedAt: Date;
14
comparePassword(candidatePassword: string): Promise<Boolean>;
15
}
16
17
const
userSchema =
new
mongoose.Schema(
18
{
Callers
1
validatePassword
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected