59 lines
917 B
TypeScript
59 lines
917 B
TypeScript
export interface Employee {
|
|
id: string;
|
|
name: string;
|
|
dept: string;
|
|
sub: string;
|
|
activity: string;
|
|
status: 'Present' | 'Absent';
|
|
in: string;
|
|
out: string;
|
|
remark: string;
|
|
}
|
|
|
|
export interface Contractor {
|
|
id: string;
|
|
name: string;
|
|
role: string;
|
|
employees: Employee[];
|
|
}
|
|
|
|
export interface Supervisor {
|
|
id: string;
|
|
name: string;
|
|
role: string;
|
|
dept: string;
|
|
contractors: Contractor[];
|
|
}
|
|
|
|
export interface User {
|
|
id: number;
|
|
username: string;
|
|
name: string;
|
|
role: string;
|
|
dept: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface Allocation {
|
|
id: number;
|
|
empId: number;
|
|
employee: string;
|
|
contractor: string;
|
|
activity: string;
|
|
date: string;
|
|
totalQty: number;
|
|
completed: number;
|
|
remaining: number;
|
|
rate: number;
|
|
amount: number;
|
|
paid: number;
|
|
status: string;
|
|
}
|
|
|
|
export interface ChartData {
|
|
name: string;
|
|
value: number;
|
|
color?: string;
|
|
fill?: string;
|
|
}
|