Table a0d7b74d.campaigns Generated by
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
Column Type Size Nulls Auto Default Children Parents Comments
id char 36
accounts.campaign_id Defined in XML R
campaign_log.campaign_id Defined in XML R
campaign_trkrs.campaign_id Defined in XML R
contacts.campaign_id Defined in XML R
email_marketing.campaign_id Defined in XML R
emailman.campaign_id Defined in XML R
forecast_worksheets.campaign_id Defined in XML R
leads.campaign_id Defined in XML R
opportunities.campaign_id Defined in XML R
products.campaign_id Defined in XML R
prospects.campaign_id Defined in XML R
revenue_line_items.campaign_id Defined in XML R
commentlog_rel.record_id Defined in XML R
campaigns_audit.parent_id Defined in XML R
prospect_list_campaigns.campaign_id Defined in XML R
activities_users.parent_id Defined in XML R
name varchar 50  √  null
date_entered datetime 19  √  null
date_modified datetime 19  √  null
modified_user_id char 36  √  null Defined in XML R
created_by char 36  √  null Defined in XML R
deleted bit 1  √  0
tracker_key int 11  √ 
tracker_count int 11  √  0
refer_url varchar 255  √  http://
tracker_text varchar 255  √  null
start_date date 10  √  null
end_date date 10  √  null
status varchar 100  √  null
impressions int 11  √  0
budget decimal 26,6  √  null
expected_cost decimal 26,6  √  null
actual_cost decimal 26,6  √  null
expected_revenue decimal 26,6  √  null
campaign_type varchar 100  √  null
objective text 65535  √  null
content text 65535  √  null
frequency varchar 100  √  null
sync_key varchar 100  √  null
assigned_user_id char 36  √  null Defined in XML R
team_id char 36  √  null Defined in XML R
team_set_id char 36  √  null
team_sets_teams.team_set_id Defined in XML R Defined in XML R
currency_id char 36  √  -99 Defined in XML R
base_rate decimal 26,6  √  null

Analyzed at Fri Oct 08 00:06 UTC 2021

Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
tracker_key Performance Asc camp_auto_tracker_key  
campaign_type Performance Asc idx_campaign_campaign_type  
end_date Performance Asc idx_campaign_end_date  
status Performance Asc idx_campaign_status  
assigned_user_id + deleted Performance Asc/Asc idx_campaigns_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_campaigns_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_campaigns_del_d_m  
id + deleted Performance Asc/Asc idx_campaigns_id_del  
name + deleted Performance Asc/Asc idx_campaigns_name_del  
sync_key Must be unique Asc idx_campaigns_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_campaigns_tmst_id  

Close relationships  within of separation: