Back to Schema

Database Tables

Connected

Database Overview

58
Total Tables
Online
Connection Status
canaccom
Database Name

Table: contact_validation_rules

50 rows

Structure

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 {"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 {"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 {"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 {"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