Table a1fb5068.quotes 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
meetings.parent_id Defined in XML R
notes.parent_id Defined in XML R
product_bundles.id Defined in XML R
products.quote_id Defined in XML R
revenue_line_items.quote_id Defined in XML R
tasks.parent_id Defined in XML R
quotes_accounts.quote_id Defined in XML R
quotes_opportunities.quote_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
quotes_contacts.quote_id Defined in XML R
projects_quotes.quote_id Defined in XML R
activities_users.parent_id Defined in XML R
emails_beans.bean_id Defined in XML R
documents_quotes.quote_id Defined in XML R
contracts_quotes.quote_id Defined in XML R
quotes_audit.parent_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
shipper_id char 36  √  null
shippers.id Defined in XML R
taxrate_id char 36  √  null
taxrates.id Defined in XML R
taxrate_value decimal 26,6  √  0.000000
show_line_nums bit 1  √  1
quote_type varchar 255  √  null
date_quote_expected_closed date 10  √  null
original_po_date date 10  √  null
payment_terms varchar 128  √  null
date_quote_closed date 10  √  null
date_order_shipped date 10  √  null
order_stage varchar 100  √  null
quote_stage varchar 100  √  null
purchase_order_num varchar 50  √  null
quote_num int 11  √ 
subtotal decimal 26,6  √  null
subtotal_usdollar decimal 26,6  √  null
shipping decimal 26,6  √  0.000000
shipping_usdollar decimal 26,6  √  null
discount decimal 26,6  √  0.000000
deal_tot decimal 26,2  √  null
deal_tot_discount_percentage decimal 26,2  √  0.00
deal_tot_usdollar decimal 26,2  √  null
new_sub decimal 26,6  √  null
new_sub_usdollar decimal 26,6  √  null
taxable_subtotal decimal 26,6  √  null
tax decimal 26,6  √  0.000000
tax_usdollar decimal 26,6  √  null
total decimal 26,6  √  null
total_usdollar decimal 26,6  √  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 100  √  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 100  √  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
currency_id char 36  √  -99
currencies.id Defined in XML R
base_rate decimal 26,6  √  null

Analyzed at Fri Mar 05 08:35 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
name Performance Asc idx_qte_name  
date_quote_expected_closed Performance Asc idx_quote_date_quote_expected_closed  
quote_stage Performance Asc idx_quote_quote_stage  
assigned_user_id + deleted Performance Asc/Asc idx_quotes_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_quotes_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_quotes_del_d_m  
id + deleted Performance Asc/Asc idx_quotes_id_del  
name + deleted Performance Asc/Asc idx_quotes_name_del  
sync_key Must be unique Asc idx_quotes_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_quotes_tmst_id  
quote_num Must be unique Asc quote_num  

Close relationships  within of separation: