New Staff Functions

This commit is contained in:
2025-11-08 19:01:22 +01:00
parent ee8e17d80e
commit d7939a9ca4
4 changed files with 267 additions and 37 deletions

27
src/types/staff.ts Normal file
View File

@@ -0,0 +1,27 @@
export interface StaffTimeEntry {
id: string
tenant_id: string
user_id: string
started_at: string
stopped_at?: string | null
duration_minutes?: number | null
type: 'work' | 'break' | 'absence' | 'other'
description?: string | null
created_at?: string
updated_at?: string
}
export interface StaffTimeEntryConnect {
id: string
time_entry_id: string
project_id?: string | null
customer_id?: string | null
task_id?: string | null
ticket_id?: string | null
started_at: string
stopped_at: string
duration_minutes?: number
notes?: string | null
created_at?: string
updated_at?: string
}