Table a41add0f.product_templates 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
forecast_worksheets.product_template_id Defined in XML R
products.product_template_id Defined in XML R
revenue_line_items.product_template_id Defined in XML R
commentlog_rel.record_id Defined in XML R
activities_users.parent_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
product_templates_audit.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
type_id char 36  √  null
product_types.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
vendor_part_num varchar 50  √  null
date_cost_price date 10  √  null
cost_price decimal 26,6  √  null
discount_price decimal 26,6  √  null
list_price 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  √  null
tax_class varchar 100  √  null
date_available date 10  √  null
website varchar 255  √  null
weight decimal 12,2  √  null
qty_in_stock int 5  √  null
support_name varchar 50  √  null
support_description varchar 255  √  null
support_contact varchar 50  √  null
support_term varchar 100  √  null
pricing_formula varchar 100  √  null
pricing_factor decimal 8,2  √  null
sync_key varchar 100  √  null
assigned_user_id char 36  √  null
users.id Defined in XML R
currency_id char 36  √  -99
currencies.id Defined in XML R
base_rate decimal 26,6  √  null
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

Analyzed at Thu Sep 02 07:29 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
assigned_user_id + deleted Performance Asc/Asc idx_product_templates_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_product_templates_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_product_templates_del_d_m  
id + deleted Performance Asc/Asc idx_product_templates_id_del  
name + deleted Performance Asc/Asc idx_product_templates_name_del  
sync_key Must be unique Asc idx_product_templates_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_product_templates_tmst_id  
category_id Performance Asc idx_producttemplate_category  
qty_in_stock Performance Asc idx_producttemplate_qty_in_stock  
status Performance Asc idx_producttemplate_status  

Close relationships  within of separation: