| 1 | import { Model } from 'objection'; |
| 2 | |
| 3 | export 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 | } |