Table afc273bb.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
emails.parent_id Defined in XML R
leads.opportunity_id Defined in XML R
meetings.parent_id Defined in XML R
notes.parent_id Defined in XML R
tasks.parent_id Defined in XML R
opportunities_contacts.opportunity_id Defined in XML R
contracts_opportunities.opportunity_id Defined in XML R
documents_opportunities.opportunity_id Defined in XML R
campaign_log.related_id Defined in XML R
emails_beans.bean_id Defined in XML R
projects_opportunities.opportunity_id Defined in XML R
quotes_opportunities.opportunity_id Defined in XML R
opportunities_audit.parent_id Defined in XML R
accounts_opportunities.opportunity_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
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
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
opportunity_type varchar 255  √  null
campaign_id char 36  √  null
campaigns.id Defined in XML R
lead_source varchar 50  √  null
amount double 22  √  null
amount_usdollar double 22  √  null
currency_id char 36  √  null
currencies.id Defined in XML R
date_closed date 10  √  null
next_step varchar 100  √  null
sales_stage varchar 255  √  null
probability double 22  √  null

Analyzed at Wed Oct 21 20:21 UTC 2015

Indexes:
Column(s) Type Sort Constraint Name
id Primary key Asc PRIMARY
assigned_user_id Performance Asc idx_opp_assigned
id + deleted Performance Asc/Asc idx_opp_id_deleted
name Performance Asc idx_opp_name
team_set_id Performance Asc idx_opportunities_tmst_id

Close relationships  within of separation: