removed phone and departement as user attribute

This commit is contained in:
2025-10-10 18:22:13 +02:00
parent 6a9ddea0c5
commit e1e435a811
21 changed files with 1508 additions and 888 deletions

View File

@@ -4,20 +4,12 @@ export interface Employee {
email: string;
name: string;
role: 'admin' | 'instandhalter' | 'user';
employeeType: 'chef' | 'neuling' | 'erfahren';
isSufficientlyIndependent: boolean;
isActive: boolean;
createdAt: string;
lastLogin?: string | null;
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;
notes?: string;
}
export interface CreateEmployeeRequest {
@@ -25,14 +17,25 @@ export interface CreateEmployeeRequest {
password: string;
name: string;
role: 'admin' | 'instandhalter' | 'user';
phone?: string;
department?: string;
employeeType: 'chef' | 'neuling' | 'erfahren';
isSufficientlyIndependent: boolean;
notes?: string;
}
export interface UpdateEmployeeRequest {
name?: string;
role?: 'admin' | 'instandhalter' | 'user';
employeeType?: 'chef' | 'neuling' | 'erfahren';
isSufficientlyIndependent?: boolean;
isActive?: boolean;
phone?: string;
department?: string;
notes?: string;
}
export interface Availability {
id: string;
employeeId: string;
dayOfWeek: number;
startTime: string;
endTime: string;
isAvailable: boolean;
}

View File

@@ -4,9 +4,12 @@ export interface User {
email: string;
name: string;
role: 'admin' | 'instandhalter' | 'user';
phone?: string;
department?: string;
lastLogin?: string;
employeeType: 'chef' | 'neuling' | 'erfahren';
isSufficientlyIndependent: boolean;
isActive: boolean;
createdAt: string;
lastLogin?: string | null;
notes?: string;
}
export interface LoginRequest {