Table a7af7d0c.accounts 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
accounts.parent_id Defined in XML R
accounts_audit.parent_id Defined in XML R
calls.parent_id Defined in XML R
campaign_log.target_id Defined in XML R
cases.account_id Defined in XML R
contracts.account_id Defined in XML R
emails.parent_id Defined in XML R
forecast_worksheets.account_id Defined in XML R
leads.account_id Defined in XML R
meetings.parent_id Defined in XML R
messages.parent_id Defined in XML R
notes.parent_id Defined in XML R
opportunities.id Defined in XML R
products.account_id Defined in XML R
purchased_line_items.account_id Defined in XML R
purchases.account_id Defined in XML R
revenue_line_items.account_id Defined in XML R
tasks.parent_id Defined in XML R
accounts_contacts.account_id Defined in XML R
email_addr_bean_rel.bean_id Defined in XML R
projects_accounts.account_id Defined in XML R
commentlog_rel.record_id Defined in XML R
accounts_audit.parent_id Defined in XML R
locked_field_bean_rel.bean_id Defined in XML R
prospect_lists_prospects.related_id Defined in XML R
emails_beans.bean_id Defined in XML R
accounts_dataprivacy.account_id Defined in XML R
documents_accounts.account_id Defined in XML R
accounts_bugs.account_id Defined in XML R
quotes_accounts.account_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
activities_users.parent_id Defined in XML R
name varchar 255  √  null
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
facebook varchar 100  √  null
twitter varchar 100  √  null
googleplus varchar 100  √  null
account_type varchar 50  √  null
industry varchar 50  √  null
annual_revenue varchar 100  √  null
phone_fax varchar 100  √  null
billing_address_street varchar 150  √  null
billing_address_city varchar 100  √  null
billing_address_state varchar 100  √  null
billing_address_postalcode varchar 20  √  null
billing_address_country varchar 255  √  null
rating varchar 100  √  null
phone_office varchar 100  √  null
phone_alternate varchar 100  √  null
website varchar 255  √  null
ownership varchar 100  √  null
employees varchar 10  √  null
ticker_symbol varchar 10  √  null
shipping_address_street varchar 150  √  null
shipping_address_city varchar 100  √  null
shipping_address_state varchar 100  √  null
shipping_address_postalcode varchar 20  √  null
shipping_address_country varchar 255  √  null
service_level varchar 255  √  null
parent_id char 36  √  null
accounts.id Defined in XML R
sic_code varchar 10  √  null
duns_num varchar 15  √  null
business_center_id char 36  √  null
business_centers.id Defined in XML R
campaign_id char 36  √  null
campaigns.id Defined in XML R
next_renewal_date date 10  √  null
sync_key varchar 100  √  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_teams.team_set_id Defined in XML R
team_sets.id Defined in XML R
acl_team_set_id char 36  √  null

Analyzed at Thu Jul 01 08:16 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
deleted + name + date_modified Performance Asc/Asc/Asc idx_acc_del_l_name_dm  
parent_id Performance Asc idx_accnt_parent_id  
billing_address_city Performance Asc idx_account_billing_address_city  
billing_address_country Performance Asc idx_account_billing_address_country  
acl_team_set_id + deleted Performance Asc/Asc idx_accounts_acl_tmst_id  
assigned_user_id + deleted Performance Asc/Asc idx_accounts_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_accounts_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_accounts_del_d_m  
id + deleted Performance Asc/Asc idx_accounts_id_del  
name + deleted Performance Asc/Asc idx_accounts_name_del  
sync_key Must be unique Asc idx_accounts_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_accounts_tmst_id  

Close relationships  within of separation: