| 2 | import { UserDocument } from "./user.model"; |
| 3 | |
| 4 | export interface SessionDocument extends mongoose.Document { |
| 5 | user: UserDocument["_id"]; |
| 6 | valid: boolean; |
| 7 | userAgent: string; |
| 8 | createdAt: Date; |
| 9 | updatedAt: Date; |
| 10 | } |
| 11 | |
| 12 | const SessionSchema = new mongoose.Schema( |
| 13 | { |
nothing calls this directly
no outgoing calls
no test coverage detected