mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-03 01:18:43 +02:00
chore: adapted IUser to our DB schema (#6627)
## About the changes Our schema allows us to have null username or email. With this change at least we'll get a compiler warning when using either of these properties 
This commit is contained in:
parent
e7970186d0
commit
fc43391184
@ -18,16 +18,16 @@ export interface UserData {
|
|||||||
|
|
||||||
export interface IUser {
|
export interface IUser {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name?: string;
|
||||||
username: string;
|
username?: string;
|
||||||
email: string;
|
email?: string;
|
||||||
inviteLink?: string;
|
inviteLink?: string;
|
||||||
seenAt?: Date;
|
seenAt?: Date;
|
||||||
createdAt?: Date;
|
createdAt?: Date;
|
||||||
permissions: string[];
|
permissions: string[];
|
||||||
loginAttempts?: number;
|
loginAttempts?: number;
|
||||||
isAPI: boolean;
|
isAPI: boolean;
|
||||||
imageUrl: string;
|
imageUrl?: string;
|
||||||
accountType?: AccountType;
|
accountType?: AccountType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user