Skip to content

Commit 68f3feb

Browse files
committed
Update types
1 parent 1239c50 commit 68f3feb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/payload-types.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ export interface User {
144144
hash?: string | null;
145145
loginAttempts?: number | null;
146146
lockUntil?: string | null;
147+
sessions?:
148+
| {
149+
id: string;
150+
createdAt?: string | null;
151+
expiresAt: string;
152+
}[]
153+
| null;
147154
password?: string | null;
148155
}
149156
/**
@@ -442,6 +449,13 @@ export interface UsersSelect<T extends boolean = true> {
442449
hash?: T;
443450
loginAttempts?: T;
444451
lockUntil?: T;
452+
sessions?:
453+
| T
454+
| {
455+
id?: T;
456+
createdAt?: T;
457+
expiresAt?: T;
458+
};
445459
}
446460
/**
447461
* This interface was referenced by `Config`'s JSON-Schema

0 commit comments

Comments
 (0)