MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / SessionModel

Class SessionModel

packages/@deeplib/db/src/models/session.ts:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { Model } from 'objection';
2
3export class SessionModel extends Model {
4 static override tableName = 'sessions';
5
6 id!: string;
7
8 user_id!: string;
9 device_id!: string;
10
11 encryption_key!: Uint8Array;
12
13 refresh_code!: string;
14
15 invalidated!: boolean;
16
17 creation_date!: Date;
18 last_refresh_date!: Date;
19 expiration_date!: Date;
20}

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected