Database Overview
58
Total Tables
Online
Connection Status
canaccom
Database Name
Available Tables
backup_restore_log
block_booking_emails
block_booking_files
block_booking_hotels
block_booking_rooms
block_bookings
booking_commissions
booking_communications
booking_documents
booking_emails
booking_files
booking_hotel_additional_costs
booking_hotel_amenities
booking_hotel_room_quantities
booking_hotel_room_types
booking_hotel_taxes
booking_hotels
booking_reminder_settings
booking_rooms
bookings
bookings_backup_2025_11_07_19_36_10
clients
communication_attachments
communication_templates
contact_change_history
contact_change_requests
contact_validation_rules
email_templates
event_facilities
event_files
events
file_storage_config
hotel_confirmations
hotel_images
hotels
invoice_emails
invoice_items
invoices
organizations
quote_request_emails
quote_request_hotels
quote_requests
room_guests
rooming_card_access_tokens
rooming_card_audit_log
rooming_cards
rooming_list_requests
stay_confirmation_files
stay_confirmation_rooms
survey_questions
survey_response_answers
survey_responses
survey_sends
surveys
team_card_profiles
team_emails
teams
users
Table: contact_validation_rules
50 rowsStructure
| Field | Type | Null | Key | Default | Extra |
|---|---|---|---|---|---|
| id | int | NO | PRI | NULL | auto_increment |
| rule_name | varchar(100) | NO | NULL | ||
| rule_type | enum('auto_approve','require_approval','block_change') | NO | MUL | NULL | |
| change_type | enum('hotel_contact','team_contact','both') | YES | both | ||
| field_changed | enum('name','title','email','phone','any') | YES | any | ||
| criteria | json | YES | NULL | ||
| auto_update_master | tinyint(1) | YES | 0 | ||
| require_manager_approval | tinyint(1) | YES | 0 | ||
| send_notification | tinyint(1) | YES | 1 | ||
| notification_recipients | json | YES | NULL | ||
| is_active | tinyint(1) | YES | MUL | 1 | |
| priority | int | YES | MUL | 100 | |
| created_by | int | YES | MUL | NULL | |
| created_at | timestamp | YES | CURRENT_TIMESTAMP | DEFAULT_GENERATED | |
| updated_at | timestamp | YES | CURRENT_TIMESTAMP | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
Sample Data (First 20 rows)
| id | rule_name | rule_type | change_type | field_changed | criteria | auto_update_master | require_manager_approval | send_notification | notification_recipients | is_active | priority | created_by | created_at | updated_at |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Minor Phone Format Changes | auto_approve | both | phone | {"phone_format_only": true} | 1 | 0 | 1 | NULL | 1 | 10 | NULL | 2025-08-24 01:26:28 | 2025-08-24 01:26:28 |
| 2 | Title Changes Only | auto_approve | both | title | {"name_email_unchanged": true} | 1 | 0 | 1 | NULL | 1 | 20 | NULL | 2025-08-24 01:26:28 | 2025-08-24 01:26:28 |
| 3 | Email Domain Changes | require_approval | both | {"email_domain_change": true} | 0 | 1 | 1 | NULL | 1 | 30 | NULL | 2025-08-24 01:26:28 | 2025-08-24 01:26:28 | |
| 4 | Name Changes | require_approval | both | name | {"name_similarity": 0.7} | 0 | 1 | 1 | NULL | 1 | 40 | NULL | 2025-08-24 01:26:28 | 2025-08-24 01:26:28 |
| 5 | Complete Contact Replacement | require_approval | both | any | {"similarity_threshold": 0.5, "multiple_fields_changed": true} | 0 | 1 | 1 | NULL | 1 | 50 | NULL | 2025-08-24 01:26:28 | 2025-08-24 01:26:28 |
| 6 | Minor Phone Format Changes | auto_approve | both | phone | {"phone_format_only": true} | 1 | 0 | 1 | NULL | 1 | 10 | NULL | 2025-08-24 01:26:54 | 2025-08-24 01:26:54 |
| 7 | Title Changes Only | auto_approve | both | title | {"name_email_unchanged": true} | 1 | 0 | 1 | NULL | 1 | 20 | NULL | 2025-08-24 01:26:54 | 2025-08-24 01:26:54 |
| 8 | Email Domain Changes | require_approval | both | {"email_domain_change": true} | 0 | 1 | 1 | NULL | 1 | 30 | NULL | 2025-08-24 01:26:54 | 2025-08-24 01:26:54 | |
| 9 | Name Changes | require_approval | both | name | {"name_similarity": 0.7} | 0 | 1 | 1 | NULL | 1 | 40 | NULL | 2025-08-24 01:26:54 | 2025-08-24 01:26:54 |
| 10 | Complete Contact Replacement | require_approval | both | any | {"similarity_threshold": 0.5, "multiple_fields_changed": true} | 0 | 1 | 1 | NULL | 1 | 50 | NULL | 2025-08-24 01:26:54 | 2025-08-24 01:26:54 |
| 11 | Minor Phone Format Changes | auto_approve | both | phone | {"phone_format_only": true} | 1 | 0 | 1 | NULL | 1 | 10 | NULL | 2025-08-29 16:39:28 | 2025-08-29 16:39:28 |
| 12 | Title Changes Only | auto_approve | both | title | {"name_email_unchanged": true} | 1 | 0 | 1 | NULL | 1 | 20 | NULL | 2025-08-29 16:39:28 | 2025-08-29 16:39:28 |
| 13 | Email Domain Changes | require_approval | both | {"email_domain_change": true} | 0 | 1 | 1 | NULL | 1 | 30 | NULL | 2025-08-29 16:39:28 | 2025-08-29 16:39:28 | |
| 14 | Name Changes | require_approval | both | name | {"name_similarity": 0.7} | 0 | 1 | 1 | NULL | 1 | 40 | NULL | 2025-08-29 16:39:28 | 2025-08-29 16:39:28 |
| 15 | Complete Contact Replacement | require_approval | both | any | {"similarity_threshold": 0.5, "multiple_fields_changed": true} | 0 | 1 | 1 | NULL | 1 | 50 | NULL | 2025-08-29 16:39:28 | 2025-08-29 16:39:28 |
| 16 | Minor Phone Format Changes | auto_approve | both | phone | {"phone_format_only": true} | 1 | 0 | 1 | NULL | 1 | 10 | NULL | 2025-09-03 11:58:41 | 2025-09-03 11:58:41 |
| 17 | Title Changes Only | auto_approve | both | title | {"name_email_unchanged": true} | 1 | 0 | 1 | NULL | 1 | 20 | NULL | 2025-09-03 11:58:41 | 2025-09-03 11:58:41 |
| 18 | Email Domain Changes | require_approval | both | {"email_domain_change": true} | 0 | 1 | 1 | NULL | 1 | 30 | NULL | 2025-09-03 11:58:41 | 2025-09-03 11:58:41 | |
| 19 | Name Changes | require_approval | both | name | {"name_similarity": 0.7} | 0 | 1 | 1 | NULL | 1 | 40 | NULL | 2025-09-03 11:58:41 | 2025-09-03 11:58:41 |
| 20 | Complete Contact Replacement | require_approval | both | any | {"similarity_threshold": 0.5, "multiple_fields_changed": true} | 0 | 1 | 1 | NULL | 1 | 50 | NULL | 2025-09-03 11:58:41 | 2025-09-03 11:58:41 |