Files
ColaFlow-Web/types/user.ts
2025-11-03 00:04:07 +01:00

30 lines
496 B
TypeScript

export type UserRole = 'Admin' | 'ProjectManager' | 'User';
export interface User {
id: string;
email: string;
firstName: string;
lastName: string;
role: UserRole;
createdAt: string;
updatedAt?: string;
}
export interface LoginDto {
email: string;
password: string;
}
export interface RegisterDto {
email: string;
password: string;
firstName: string;
lastName: string;
}
export interface AuthResponse {
accessToken: string;
refreshToken: string;
user: User;
}