added frontend user management

This commit is contained in:
2025-10-08 15:25:03 +02:00
parent 54eaa86924
commit 4e120c8789
8 changed files with 1351 additions and 23 deletions

View File

@@ -0,0 +1,38 @@
// frontend/src/types/employee.ts
export interface Employee {
id: string;
email: string;
name: string;
role: 'admin' | 'instandhalter' | 'user';
isActive: boolean;
createdAt: string;
lastLogin?: string;
phone?: string;
department?: string;
}
export interface Availability {
id: string;
employeeId: string;
dayOfWeek: number; // 0-6 (Sonntag-Samstag)
startTime: string; // "08:00"
endTime: string; // "16:00"
isAvailable: boolean;
}
export interface CreateEmployeeRequest {
email: string;
password: string;
name: string;
role: 'admin' | 'instandhalter' | 'user';
phone?: string;
department?: string;
}
export interface UpdateEmployeeRequest {
name?: string;
role?: 'admin' | 'instandhalter' | 'user';
isActive?: boolean;
phone?: string;
department?: string;
}