39 lines
735 B
TypeScript
39 lines
735 B
TypeScript
|
|
export interface User {
|
||
|
|
id: number
|
||
|
|
name: string
|
||
|
|
email: string
|
||
|
|
role: 'admin' | 'staff'
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface Client {
|
||
|
|
id: number
|
||
|
|
client_number: string
|
||
|
|
name: string
|
||
|
|
notes: Record<string, string>
|
||
|
|
created_at: string
|
||
|
|
updated_at: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface HistoryEntry {
|
||
|
|
id: number
|
||
|
|
client_id: number
|
||
|
|
type: 'phone_call' | 'consultation' | 'recommendation' | 'instruction' | 'remark' | 'other'
|
||
|
|
body: string
|
||
|
|
author_id: number
|
||
|
|
author_name: string | null
|
||
|
|
updated_by: number | null
|
||
|
|
updated_by_name: string | null
|
||
|
|
created_at: string
|
||
|
|
updated_at: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface PaginatedResponse<T> {
|
||
|
|
data: T[]
|
||
|
|
meta: {
|
||
|
|
current_page: number
|
||
|
|
last_page: number
|
||
|
|
total: number
|
||
|
|
per_page: number
|
||
|
|
}
|
||
|
|
}
|