Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Untitled *
v Show/Hide tables list View in full-screen Add tables from other databases New page Open page Save page Save page as Delete pages Create table Create relationship Choose column to display Reload Help Angular links / Direct links Snap to grid v Small/Big All Toggle small/big Toggle relationship lines Export schema > Move Menu > Pin text
Number of tables: 0
v hr_portal_db departments
* id : int(11)
* name : varchar(100)
* status : enum('Active','Inactive')
v hr_portal_db employees
* id : int(11)
* employee_code : varchar(50)
* salutation : varchar(20)
* first_name : varchar(100)
* last_name : varchar(100)
* middle_name : varchar(100)
* extension_name : varchar(20)
* nickname : varchar(50)
* gender : enum('Male','Female')
* birth_date : date
* nationality : varchar(100)
* marital_status : enum('Single','Married','Widowed','Separated','Divorced')
* personal_email : varchar(150)
* work_email : varchar(150)
* mobile_number : varchar(20)
* telephone_number : varchar(20)
* address_street : text
* city : varchar(100)
* province : varchar(100)
* zip_code : varchar(20)
* country : varchar(100)
* emergency_contact_name : varchar(150)
* emergency_contact_relation : varchar(50)
* emergency_contact_phone : varchar(20)
* sss_number : varchar(50)
* philhealth_number : varchar(50)
* pagibig_number : varchar(50)
* tin_number : varchar(50)
* drivers_license : varchar(50)
* passport_number : varchar(50)
* department_id : int(11)
* position : varchar(100)
* department_id_2 : int(11)
* position_2 : varchar(100)
* employment_status : enum('Regular','Probationary','Contractual','Seasonal','Casual','Fixed Term','Project Based','Part Time','Full Time')
* status : enum('Active','Inactive','AWOL','Resigned','Terminated','End of Contract')
* date_hired : date
* date_regularized : date
* created_at : timestamp
* updated_at : timestamp
* profile_picture : varchar(255)
* sss_file : varchar(255)
* philhealth_file : varchar(255)
* pagibig_file : varchar(255)
* tin_file : varchar(255)
* branch : varchar(50)
* holiday_exempted : enum('Yes','No')
* picture_2x2_file : varchar(255)
* coe_tor_file : varchar(255)
* birth_cert_file : varchar(255)
* nbi_clearance_file : varchar(255)
* police_clearance_file : varchar(255)
* cutoff_schedule : varchar(255)
* payroll_schedule : varchar(255)
* cutoff_1 : int(11)
* cutoff_2 : int(11)
* payroll_1 : int(11)
* payroll_2 : int(11)
* salary_type : varchar(50)
* basic_salary : decimal(10,2)
* hourly_rate : decimal(10,2)
* fixed_rate : decimal(10,2)
v hr_portal_db payroll_records
* id : int(11)
* employee_id : int(11)
* period_start : date
* period_end : date
* pay_date : date
* monthly_rate : decimal(10,2)
* payroll_rate : decimal(10,2)
* days_rendered : decimal(5,2)
* rate_per_day : decimal(10,2)
* absences_days : decimal(5,2)
* absences_amount : decimal(10,2)
* lates_mins : int(11)
* lates_amount : decimal(10,2)
* undertime_mins : int(11)
* undertime_amount : decimal(10,2)
* overload_hrs : decimal(5,2)
* overload_amount : decimal(10,2)
* others_earnings : decimal(10,2)
* gross_pay : decimal(10,2)
* sss_deduction : decimal(10,2)
* phic_deduction : decimal(10,2)
* hdmf_deduction : decimal(10,2)
* tax_deduction : decimal(10,2)
* ca_installment : decimal(10,2)
* ca_lumpsum : decimal(10,2)
* sss_loan : decimal(10,2)
* hdmf_loan : decimal(10,2)
* others_deductions : decimal(10,2)
* total_deductions : decimal(10,2)
* net_pay : decimal(10,2)
* created_at : timestamp
* updated_at : timestamp
* payroll_type : varchar(50)
* rate_per_hour : decimal(10,2)
* hours_rendered : decimal(5,2)
* is_finalized : tinyint(1)
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship