Table ab09f869.leads Generated by
SchemaSpy
Legend: SourceForge.net
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
calls.parent_id Defined in XML R
campaign_log.target_id Defined in XML R
emails.parent_id Defined in XML R
leads.reports_to_id Defined in XML R
meetings.parent_id Defined in XML R
notes.parent_id Defined in XML R
prospects.lead_id Defined in XML R
tasks.parent_id Defined in XML R
meetings_leads.lead_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
commentlog_rel.record_id Defined in XML R
campaign_log.related_id Defined in XML R
leads_dataprivacy.lead_id Defined in XML R
activities_users.parent_id Defined in XML R
calls_leads.lead_id Defined in XML R
emails_beans.bean_id Defined in XML R
prospect_lists_prospects.related_id Defined in XML R
leads_audit.parent_id Defined in XML R
email_addr_bean_rel.bean_id Defined in XML R
date_entered datetime 19  √  null
date_modified datetime 19  √  null
modified_user_id char 36  √  null
users.id Defined in XML R
created_by char 36  √  null
users.id Defined in XML R
description text 65535  √  null
deleted bit 1  √  0
salutation varchar 255  √  null
first_name varchar 100  √  null
last_name varchar 100  √  null
title varchar 100  √  null
facebook varchar 100  √  null
twitter varchar 100  √  null
googleplus varchar 100  √  null
department varchar 100  √  null
do_not_call bit 1  √  0
phone_home varchar 100  √  null
phone_mobile varchar 100  √  null
phone_work varchar 100  √  null
phone_other varchar 100  √  null
phone_fax varchar 100  √  null
primary_address_street varchar 150  √  null
primary_address_city varchar 100  √  null
primary_address_state varchar 100  √  null
primary_address_postalcode varchar 20  √  null
primary_address_country varchar 255  √  null
alt_address_street varchar 150  √  null
alt_address_city varchar 100  √  null
alt_address_state varchar 100  √  null
alt_address_postalcode varchar 20  √  null
alt_address_country varchar 255  √  null
assistant varchar 75  √  null
assistant_phone varchar 100  √  null
picture varchar 255  √  null
converted bit 1  √  0
refered_by varchar 100  √  null
lead_source varchar 100  √  null
lead_source_description text 65535  √  null
status varchar 100  √  New
status_description text 65535  √  null
reports_to_id char 36  √  null
leads.id Defined in XML R
dp_business_purpose text 65535  √  null
dp_consent_last_updated date 10  √  null
dnb_principal_id varchar 30  √  null
account_name varchar 255  √  null
account_description text 65535  √  null
contact_id char 36  √  null
contacts.id Defined in XML R
account_id char 36  √  null
accounts.id Defined in XML R
opportunity_id char 36  √  null
opportunities.id Defined in XML R
opportunity_name varchar 255  √  null
opportunity_amount varchar 50  √  null
campaign_id char 36  √  null
campaigns.id Defined in XML R
birthdate date 10  √  null
website varchar 255  √  null
preferred_language varchar 255  √  null
mkto_sync bit 1  √  0
mkto_id int 11  √  null
mkto_lead_score int 11  √  null
assigned_user_id char 36  √  null
users.id Defined in XML R
team_id char 36  √  null
teams.id Defined in XML R
team_set_id char 36  √  null
team_sets.id Defined in XML R
team_sets_teams.team_set_id Defined in XML R

Analyzed at Mon Mar 23 07:19 UTC 2020

Indexes:
Column(s) Type Sort Constraint Name
id Primary key Asc PRIMARY
deleted + account_name + date_modified + id + team_set_id Performance Asc/Asc/Asc/Asc/Asc idx_lead_acct_name_first
assigned_user_id Performance Asc idx_lead_assigned
contact_id Performance Asc idx_lead_contact
last_name + status + deleted + first_name Performance Asc/Asc/Asc/Asc idx_lead_del_stat
deleted + last_name Performance Asc/Asc idx_lead_idx_del_last_name
mkto_id Performance Asc idx_lead_mkto_id
deleted + opportunity_id + id Performance Asc/Asc/Asc idx_lead_opp_del
phone_work Performance Asc idx_lead_phone_work
account_id + deleted Performance Asc/Asc idx_leads_acct_del
assigned_user_id + deleted Performance Asc/Asc idx_leads_assigned_del
deleted + date_entered + id Performance Asc/Asc/Asc idx_leads_del_d_e
deleted + date_modified + id Performance Asc/Asc/Asc idx_leads_del_d_m
first_name + last_name + deleted Performance Asc/Asc/Asc idx_leads_first_last
id + deleted Performance Asc/Asc idx_leads_id_del
last_name + first_name + deleted Performance Asc/Asc/Asc idx_leads_last_first
deleted + status Performance Asc/Asc idx_leads_status
team_set_id + deleted Performance Asc/Asc idx_leads_tmst_id
deleted + reports_to_id + id Performance Asc/Asc/Asc idx_reports_to

Close relationships  within of separation: