@excali-boards/boards-api-client 1.1.1-dev.17 → 1.1.1-dev.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.1-dev.17",
2
+ "version": "1.1.1-dev.18",
3
3
  "name": "@excali-boards/boards-api-client",
4
4
  "description": "A simple API client for the Boards API.",
5
5
  "repository": "https://github.com/Excali-Boards/boards-api-client",
@@ -16,6 +16,26 @@ model User {
16
16
  boardPermissions BoardPermission[]
17
17
 
18
18
  createdInvites Invite[]
19
+ sessions Session[]
20
+ }
21
+
22
+ model Session {
23
+ dbId String @id @default(uuid())
24
+
25
+ token String @unique
26
+
27
+ locationEncrypted String?
28
+ deviceEncrypted String?
29
+
30
+ userId String
31
+ user User @relation(fields: [userId], references: [userId], onDelete: Cascade)
32
+
33
+ createdAt DateTime @default(now())
34
+ expiresAt DateTime
35
+ lastUsed DateTime @default(now())
36
+
37
+ @@index([userId])
38
+ @@index([expiresAt])
19
39
  }
20
40
 
21
41
  model LoginMethod {