mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 15:05:45 +01:00
added frontend user management
This commit is contained in:
38
frontend/src/types/employee.ts
Normal file
38
frontend/src/types/employee.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user