| 3 | import config from "config"; |
| 4 | |
| 5 | export 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 | |
| 14 | const UserSchema = new mongoose.Schema( |
| 15 | { |