Dummydaten und Sprache angepasst
Dieser Commit ist enthalten in:
@ -165,7 +165,7 @@ function buildEmployeeWithDetails(emp: any): Employee {
|
||||
export function createEmployee(input: EmployeeInput, actorUserId: string): { id: string } {
|
||||
const now = new Date().toISOString()
|
||||
const employeeId = uuidv4()
|
||||
const position = input.position || 'Mitarbeiter'
|
||||
const position = input.position || 'Teammitglied'
|
||||
const phone = input.phone || 'Nicht angegeben'
|
||||
const availability = input.availability || 'available'
|
||||
const employeeNumber = input.employeeNumber || `EMP${Date.now()}`
|
||||
@ -256,7 +256,7 @@ export function updateEmployee(id: string, input: EmployeeInput, actorUserId: st
|
||||
updated_at = ?, updated_by = ?
|
||||
WHERE id = ?
|
||||
`).run(
|
||||
input.firstName, input.lastName, input.position || 'Mitarbeiter', input.department,
|
||||
input.firstName, input.lastName, input.position || 'Teammitglied', input.department,
|
||||
// encryption handled in secure db layer caller; here store encrypted values already in input? Route prepares with FieldEncryption
|
||||
input.email, // already encrypted by route layer
|
||||
null, // email_hash set by route if needed
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren