missing fields

This commit is contained in:
Alex Holliday committed 2026-02-06 23:07:17 +00:00
1 parent 2d84fae470
commit 78b920aaf6
5 files changed
+61 -7

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
export const UserRoles = ["user", "admin", "superadmin", "demo"] as const;
export type UserRole = (typeof UserRoles)[number];
export interface UserProfileImage {
data?: Buffer;
contentType?: string;
}
export interface User {
id: string;
firstName: string;
lastName: string;
email: string;
avatarImage?: string;
profileImage?: UserProfileImage;
isActive: boolean;
isVerified: boolean;
role: UserRole[];
teamId: string;
checkTTL?: number;
createdAt: string;
updatedAt: string;
}
export interface AuthResponse {
user: User;
token: string;
}