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 :
DATABASE_OMS
v Show/Hide tables list View in fullscreen 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 aurion_oms audit_logs
* id : bigint(20) unsigned
* user_id : int(10) unsigned
* action : varchar(50)
* entity : varchar(50)
* entity_id : varchar(50)
* details : text
* ip_address : varchar(45)
* user_agent : varchar(255)
* created_at : datetime
v aurion_oms cutoffs
* id : int(10) unsigned
* name : varchar(60)
* start_date : date
* end_date : date
* status : enum('open','locked')
* locked_by : int(10) unsigned
* locked_at : datetime
* created_at : datetime
v aurion_oms departments
* id : int(10) unsigned
* code : varchar(20)
* name : varchar(100)
* is_active : tinyint(1)
* created_at : datetime
v aurion_oms employees
* id : int(10) unsigned
* employee_no : varchar(30)
* first_name : varchar(60)
* middle_name : varchar(60)
* last_name : varchar(60)
* suffix : varchar(10)
* department_id : int(10) unsigned
* position : varchar(100)
* employment_type : enum('regular','probationary','contractual','project')
* daily_rate : decimal(10,2)
* rest_days : varchar(20)
* shift_start : time
* shift_end : time
* hire_date : date
* status : enum('active','inactive')
* created_by : int(10) unsigned
* created_at : datetime
* updated_at : datetime
v aurion_oms holidays
* id : int(10) unsigned
* holiday_date : date
* name : varchar(120)
* type : enum('regular','special','double')
* created_at : datetime
v aurion_oms login_history
* id : bigint(20) unsigned
* user_id : int(10) unsigned
* username : varchar(150)
* success : tinyint(1)
* ip_address : varchar(45)
* user_agent : varchar(255)
* created_at : datetime
v aurion_oms notifications
* id : bigint(20) unsigned
* user_id : int(10) unsigned
* title : varchar(150)
* message : varchar(255)
* is_read : tinyint(1)
* created_at : datetime
v aurion_oms ot_actions
* id : bigint(20) unsigned
* ot_id : int(10) unsigned
* user_id : int(10) unsigned
* action : varchar(30)
* from_status : varchar(20)
* to_status : varchar(20)
* reason : text
* created_at : datetime
v aurion_oms ot_rates
* code : varchar(10)
* label : varchar(100)
* base_rate : decimal(6,4)
* ot_rate : decimal(6,4)
* sort_order : int(11)
* updated_at : datetime
v aurion_oms overtime_records
* id : int(10) unsigned
* ref_no : varchar(20)
* employee_id : int(10) unsigned
* ot_date : date
* time_in : time
* time_out : time
* start_dt : datetime
* end_dt : datetime
* break_minutes : int(11)
* total_hours : decimal(6,2)
* premium_hours : decimal(6,2)
* excess_hours : decimal(6,2)
* nd_hours : decimal(6,2)
* day_type : varchar(10)
* rd_override : tinyint(1)
* hourly_rate : decimal(10,4)
* base_rate : decimal(6,4)
* ot_rate : decimal(6,4)
* nd_rate : decimal(6,4)
* amount : decimal(12,2)
* project : varchar(120)
* reason : text
* remarks : text
* attachment_path : varchar(255)
* attachment_name : varchar(255)
* status : enum('draft','submitted','approved','verified','rejected','returned','cancelled')
* last_reason : text
* flagged : tinyint(1)
* flag_note : text
* flagged_by : int(10) unsigned
* flagged_at : datetime
* cutoff_id : int(10) unsigned
* encoded_by : int(10) unsigned
* approved_by : int(10) unsigned
* approved_at : datetime
* verified_by : int(10) unsigned
* verified_at : datetime
* created_at : datetime
* updated_at : datetime
* deleted_at : datetime
v aurion_oms password_history
* id : int(10) unsigned
* user_id : int(10) unsigned
* password_hash : varchar(255)
* created_at : datetime
v aurion_oms settings
* skey : varchar(50)
* svalue : varchar(255)
* label : varchar(150)
v aurion_oms users
* id : int(10) unsigned
* employee_no : varchar(30)
* full_name : varchar(120)
* email : varchar(150)
* username : varchar(50)
* password_hash : varchar(255)
* role : enum('superadmin','hr_manager','hr_encoder','approver')
* department_id : int(10) unsigned
* status : enum('pending','active','inactive')
* must_change_password : tinyint(1)
* failed_attempts : int(11)
* locked_until : datetime
* last_login_at : datetime
* created_by : int(10) unsigned
* created_at : datetime
* updated_at : datetime
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship