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 cgc_tabulation audit_logs
* id : int(11)
* user_id : int(11)
* action : varchar(100)
* table_affected : varchar(50)
* record_id : int(11)
* old_value : text
* new_value : text
* reason : text
* ip_address : varchar(45)
* created_at : timestamp
v cgc_tabulation candidates
* id : int(11)
* competition_id : int(11)
* candidate_number : varchar(10)
* division : enum('MALE','FEMALE')
* last_name : varchar(100)
* first_name : varchar(100)
* middle_initial : varchar(5)
* program_id : int(11)
* year_level : varchar(20)
* photo_path : varchar(255)
* status : enum('ACTIVE','INACTIVE','DISQUALIFIED')
* created_at : timestamp
v cgc_tabulation categories
* id : int(11)
* competition_id : int(11)
* round_id : int(11)
* title : varchar(150)
* description : text
* division_applicability : text
* weight_percentage : decimal(5,2)
* max_points : decimal(5,2)
* display_order : int(11)
* status : enum('OPEN','CLOSED','PUBLISHED')
v cgc_tabulation category_mechanics
* id : int(11)
* category_id : int(11)
* title : varchar(150)
* description : text
* max_points : decimal(5,2)
* display_order : int(11)
v cgc_tabulation competitions
* id : int(11)
* year : year(4)
* title : varchar(255)
* theme : varchar(255)
* competition_type : varchar(50)
* scoring_method : varchar(50)
* status : enum('PENDING','ACTIVE','TABULATION','COMPLETED','ARCHIVED')
* settings : text
* created_at : timestamp
* updated_at : timestamp
v cgc_tabulation deductions
* id : int(11)
* competition_id : int(11)
* candidate_id : int(11)
* entry_id : int(11)
* category_id : int(11)
* rule_id : int(11)
* amount : decimal(5,2)
* reason : text
* status : enum('APPROVED','PENDING','REJECTED')
* created_by : int(11)
* created_at : timestamp
v cgc_tabulation deduction_rules
* id : int(11)
* competition_id : int(11)
* title : varchar(100)
* description : text
* deduction_type : enum('FIXED_POINTS','PERCENTAGE')
* amount : decimal(5,2)
* created_at : timestamp
v cgc_tabulation departments
* id : int(11)
* name : varchar(100)
* type : enum('COLLEGE','SHS')
v cgc_tabulation divisions
* id : int(11)
* competition_id : int(11)
* name : varchar(100)
* code : varchar(50)
* description : text
* display_order : int(11)
* status : enum('ACTIVE','INACTIVE')
* created_at : timestamp
v cgc_tabulation entries
* id : int(11)
* competition_id : int(11)
* division_id : int(11)
* entry_number : varchar(50)
* entry_name : varchar(255)
* entry_type : varchar(50)
* department_id : int(11)
* photograph : varchar(255)
* description : text
* status : enum('ACTIVE','INACTIVE','DISQUALIFIED')
* created_at : timestamp
v cgc_tabulation entry_members
* id : int(11)
* entry_id : int(11)
* full_name : varchar(255)
* student_number : varchar(50)
* department_id : int(11)
* program_id : int(11)
* year_level : varchar(50)
* role : varchar(50)
* created_at : timestamp
v cgc_tabulation judges
* id : int(11)
* user_id : int(11)
* competition_id : int(11)
* round_id : int(11)
* judge_number : varchar(10)
* division_assigned : text
v cgc_tabulation migrations
* id : int(11)
* migration : varchar(255)
* applied_at : timestamp
v cgc_tabulation officials
* id : int(11)
* user_id : int(11)
* competition_id : int(11)
* official_type : varchar(50)
* official_number : varchar(20)
* status : enum('ACTIVE','INACTIVE')
* created_at : timestamp
v cgc_tabulation programs
* id : int(11)
* department_id : int(11)
* code : varchar(20)
* name : varchar(255)
v cgc_tabulation roles
* id : int(11)
* role_name : varchar(50)
* description : varchar(255)
v cgc_tabulation rounds
* id : int(11)
* competition_id : int(11)
* name : varchar(100)
* description : text
* display_order : int(11)
* status : enum('ACTIVE','INACTIVE','COMPLETED')
* created_at : timestamp
v cgc_tabulation scores
* id : int(11)
* judge_id : int(11)
* candidate_id : int(11)
* entry_id : int(11)
* category_id : int(11)
* round_id : int(11)
* mechanic_id : int(11)
* score : decimal(5,2)
* is_locked : tinyint(1)
* created_at : timestamp
* updated_at : timestamp
v cgc_tabulation score_submissions
* id : int(11)
* judge_id : int(11)
* category_id : int(11)
* round_id : int(11)
* division : enum('MALE','FEMALE')
* status : enum('DRAFT','SUBMITTED')
* submitted_at : timestamp
v cgc_tabulation scoring_criteria
* id : int(11)
* competition_id : int(11)
* parent_id : int(11)
* title : varchar(150)
* description : text
* max_points : decimal(8,2)
* weight_percentage : decimal(5,2)
* display_order : int(11)
* created_at : timestamp
v cgc_tabulation system_settings
* id : int(11)
* setting_key : varchar(50)
* setting_value : text
v cgc_tabulation users
* id : int(11)
* role_id : int(11)
* username : varchar(50)
* password_hash : varchar(255)
* full_name : varchar(100)
* status : enum('ACTIVE','INACTIVE')
* created_at : timestamp
* updated_at : timestamp
Create relationship
FOREIGN KEY
on delete
on update
Delete relationship