Initial commit

This commit is contained in:
Yaojia Wang
2025-11-03 00:04:07 +01:00
parent 34b701de48
commit 097300e8ec
37 changed files with 3473 additions and 109 deletions

29
types/user.ts Normal file
View File

@@ -0,0 +1,29 @@
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;
}