feat: Refactor User entity and datasource to use email and password hashing with salt

This commit is contained in:
2025-03-10 08:05:48 +00:00
parent f567d086ec
commit 3193204dac
9 changed files with 110 additions and 56 deletions
+3 -3
View File
@@ -140,14 +140,14 @@ export interface UserDto {
createdAt: string;
updatedAt: string;
lastEditorID: string;
username: string;
email: string;
password: string; // Note: In a real application, you would NEVER send the password in a DTO. This is just for demonstration.
role: string;
companyId: number /* int */;
hourlyRate: number /* float64 */;
}
export interface UserCreateDto {
username: string;
email: string;
password: string; // Note: In a real application, you would NEVER send the password in a DTO. This is just for demonstration.
role: string;
companyId: number /* int */;
@@ -158,7 +158,7 @@ export interface UserUpdateDto {
createdAt?: string;
updatedAt?: string;
lastEditorID?: string;
username?: string;
email?: string;
password?: string; // Note: In a real application, you would NEVER send the password in a DTO. This is just for demonstration.
role?: string;
companyId?: number /* int */;