Table a1b9088d.revenue_line_items 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
meetings.parent_id Defined in XML R
messages.parent_id Defined in XML R
notes.parent_id Defined in XML R
products.parent_rli_id Defined in XML R
products.revenuelineitem_id Defined in XML R
purchased_line_items.revenuelineitem_id Defined in XML R
revenue_line_items.renewal_rli_id Defined in XML R
tasks.parent_id Defined in XML R
activities_users.parent_id Defined in XML R
locked_field_bean_rel.bean_id Defined in XML R
revenue_line_items_audit.parent_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
emails_beans.bean_id Defined in XML R
documents_revenuelineitems.rli_id Defined in XML R
commentlog_rel.record_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
product_template_id char 36  √  null
product_templates.id Defined in XML R
lock_duration bit 1  √  0
account_id char 36  √  null
accounts.id Defined in XML R
total_amount decimal 26,6  √  null
type_id char 36  √  null
product_types.id Defined in XML R
quote_id char 36  √  null
quotes.id Defined in XML R
manufacturer_id char 36  √  null
manufacturers.id Defined in XML R
category_id char 36  √  null
product_categories.id Defined in XML R
mft_part_num varchar 50  √  null
cost_price decimal 26,6  √  null
discount_price decimal 26,6  √  null
discount_amount decimal 26,6  √  0.000000
discount_select bit 1  √  1
discount_rate_percent decimal 26,2  √  null
discount_amount_usdollar decimal 26,6  √  null
discount_amount_signed decimal 26,6  √  0.000000
deal_calc decimal 26,6  √  null
deal_calc_usdollar decimal 26,6  √  null
cost_usdollar decimal 26,6  √  null
discount_usdollar decimal 26,6  √  null
list_usdollar decimal 26,6  √  null
status varchar 100  √ 
book_value_usdollar decimal 26,6  √  null
generate_purchase varchar 25  √  null
purchasedlineitem_id char 36  √  null
best_case decimal 26,6  √  null
likely_case decimal 26,6  √  null
worst_case decimal 26,6  √  null
date_closed date 10  √  null
date_closed_timestamp bigint unsigned 20  √  null
next_step varchar 100  √  null
commit_stage varchar 50  √  exclude
sales_stage varchar 255  √  Prospecting
probability double 22  √  null
lead_source varchar 50  √  null
campaign_id char 36  √  null
campaigns.id Defined in XML R
opportunity_id char 36  √  null
opportunities.id Defined in XML R
product_type varchar 255  √  null
add_on_to_id char 36  √  null
purchased_line_items.id Defined in XML R
renewal_rli_id char 36  √  null
revenue_line_items.id Defined in XML R
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.id Defined in XML R
team_sets_teams.team_set_id Defined in XML R
acl_team_set_id char 36  √  null
asset_number varchar 50  √  null
book_value decimal 26,6  √  null
book_value_date date 10  √  null
date_purchased date 10  √  null
date_support_expires date 10  √  null
date_support_starts date 10  √  null
list_price decimal 26,6  √  null
pricing_factor int 4  √  null
pricing_formula varchar 100  √  null
quantity decimal 12,2  √  1.00
serial_number varchar 50  √  null
renewable bit 1  √  0
service bit 1  √  0
service_duration_value int 5  √  null
service_duration_unit varchar 50  √  null
catalog_service_duration_value int 5  √  null
catalog_service_duration_unit varchar 50  √  null
service_duration_multiplier decimal 10  √  null
service_end_date date 10  √  null
service_start_date date 10  √  null
support_contact varchar 50  √  null
support_description varchar 255  √  null
support_name varchar 50  √  null
support_term varchar 100  √  null
tax_class varchar 100  √  Taxable
vendor_part_num varchar 50  √  null
website varchar 255  √  null
weight decimal 12,2  √  null
currency_id char 36  √  -99
currencies.id Defined in XML R
base_rate decimal 26,6  √  null

Analyzed at Fri Mar 05 08:49 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
account_id + product_type + renewable + date_closed Performance Asc/Asc/Asc/Asc idx_accountid_type_ren_dateclosed  
deleted + renewal_rli_id + id Performance Asc/Asc/Asc idx_renewal_rli_id_del  
acl_team_set_id + deleted Performance Asc/Asc idx_revenue_line_items_acl_tmst_id  
assigned_user_id + deleted Performance Asc/Asc idx_revenue_line_items_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_revenue_line_items_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_revenue_line_items_del_d_m  
id + deleted Performance Asc/Asc idx_revenue_line_items_id_del  
name + deleted Performance Asc/Asc idx_revenue_line_items_name_del  
sync_key Must be unique Asc idx_revenue_line_items_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_revenue_line_items_tmst_id  
commit_stage Performance Asc idx_revenuelineitem_commit_stage  
opportunity_id Performance Asc idx_revenuelineitem_oppid  
probability Performance Asc idx_revenuelineitem_probability  
quantity Performance Asc idx_revenuelineitem_quantity  
sales_stage Performance Asc idx_revenuelineitem_sales_stage  
deleted + account_id + id Performance Asc/Asc/Asc idx_rli_account_id_del  
deleted + created_by + product_template_id Performance Asc/Asc/Asc idx_rli_del_created_by_pt_id  
deleted + name + date_modified Performance Asc/Asc/Asc idx_rli_name_dm  
deleted + quote_id + id Performance Asc/Asc/Asc idx_rli_quote_id_del  
id + assigned_user_id + date_closed_timestamp Performance Asc/Asc/Asc idx_rli_user_dc_timestamp  

Close relationships  within of separation: