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

Interface SessionDocument

src/model/session.model.ts:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected