(Feat): Initial Commit
This commit is contained in:
58
src/types.ts
Normal file
58
src/types.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user