Table a44ce500.opportunities 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
contracts.id Defined in XML R
emails.parent_id Defined in XML R
forecast_worksheets.opportunity_id Defined in XML R
leads.opportunity_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.renewal_parent_id Defined in XML R
products.opportunity_id Defined in XML R
purchased_line_items.renewal_opp_id Defined in XML R
revenue_line_items.opportunity_id Defined in XML R
tasks.parent_id Defined in XML R
opportunities_contacts.opportunity_id Defined in XML R
documents_opportunities.opportunity_id Defined in XML R
accounts.id Defined in XML R
activities_users.parent_id Defined in XML R
emails_beans.bean_id Defined in XML R
projects_opportunities.opportunity_id Defined in XML R
commentlog_rel.record_id Defined in XML R
campaign_log.related_id Defined in XML R
opportunities_audit.parent_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
quotes_opportunities.opportunity_id Defined in XML R
locked_field_bean_rel.bean_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
opportunity_type varchar 255  √  null
campaign_id char 36  √  null
campaigns.id Defined in XML R
lead_source varchar 50  √  null
amount decimal 26,6  √  null
amount_usdollar decimal 26,6  √  null
date_closed date 10  √  null
date_closed_timestamp bigint unsigned 20  √  null
next_step varchar 100  √  null
sales_stage varchar 255  √  Prospecting
sales_status varchar 255  √  New
probability double 22  √  null
best_case decimal 26,6  √  null
worst_case decimal 26,6  √  null
commit_stage varchar 50  √  null
service_start_date date 10  √  null
service_open_revenue_line_items int 11  √  null
total_revenue_line_items int 11  √  null
closed_revenue_line_items int 11  √  null
included_revenue_line_items int 11  √  null
renewal_parent_id char 36  √  null
opportunities.id Defined in XML R
service_duration_value int 5  √  null
service_duration_unit varchar 50  √  null
service_open_flex_duration_rlis int 11  √  0
mkto_sync bit 1  √  0
mkto_id int 11  √  null
renewal bit 1  √  0
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
currency_id char 36  √  -99
currencies.id Defined in XML R
base_rate decimal 26,6  √  null

Analyzed at Fri Mar 26 07:43 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
assigned_user_id + date_closed_timestamp + deleted Performance Asc/Asc/Asc idx_opp_assigned_timestamp  
deleted + name + date_modified Performance Asc/Asc/Asc idx_opp_name  
acl_team_set_id + deleted Performance Asc/Asc idx_opportunities_acl_tmst_id  
assigned_user_id + deleted Performance Asc/Asc idx_opportunities_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_opportunities_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_opportunities_del_d_m  
id + deleted Performance Asc/Asc idx_opportunities_id_del  
name + deleted Performance Asc/Asc idx_opportunities_name_del  
sync_key Must be unique Asc idx_opportunities_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_opportunities_tmst_id  
lead_source Performance Asc idx_opportunity_lead_source  
mkto_id Performance Asc idx_opportunity_mkto_id  
deleted + next_step + date_modified Performance Asc/Asc/Asc idx_opportunity_next_step  
opportunity_type Performance Asc idx_opportunity_opportunity_type  
sales_status Performance Asc idx_opportunity_sales_status  

Close relationships  within of separation: