|
id
|
int(10) unsigned
|
|
|
|
|
company_id
|
int(10) unsigned
|
|
|
0
|
|
branch_id
|
int(10) unsigned
|
|
|
0
|
|
employee_id
|
int(10) unsigned
|
|
|
0
|
|
leave_type_id
|
int(10) unsigned
|
|
|
0
|
|
leave_from
|
date
|
|
|
|
|
leave_to
|
date
|
|
|
|
|
total_days
|
decimal(8,2)
|
|
|
0.00
|
|
half_day
|
tinyint(1)
|
|
|
0
|
|
half_day_session
|
varchar(30)
|
|
|
|
|
reason
|
text
|
|
|
|
|
attachment_path
|
varchar(255)
|
|
|
|
|
leave_status
|
varchar(40)
|
|
|
Pending
|
|
approved_by
|
int(10) unsigned
|
|
|
|
|
approved_at
|
datetime
|
|
|
|
|
rejected_by
|
int(10) unsigned
|
|
|
|
|
rejected_at
|
datetime
|
|
|
|
|
rejection_reason
|
text
|
|
|
|
|
cancel_requested
|
tinyint(1)
|
|
|
0
|
|
cancel_reason
|
text
|
|
|
|
|
cancelled_by
|
int(10) unsigned
|
|
|
|
|
cancelled_at
|
datetime
|
|
|
|
|
remarks
|
text
|
|
|
|
|
is_active
|
tinyint(1)
|
|
|
1
|
|
delete_status
|
tinyint(1)
|
|
|
0
|
|
created_by
|
int(10) unsigned
|
|
|
|
|
updated_by
|
int(10) unsigned
|
|
|
|
|
deleted_by
|
int(10) unsigned
|
|
|
|
|
created_at
|
datetime
|
|
|
current_timestamp()
|
|
updated_at
|
datetime
|
|
|
|
|
deleted_at
|
datetime
|
|
|
|