Table a41add0f.product_categories 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.category_id Defined in XML R
product_categories.parent_id Defined in XML R
product_templates.category_id Defined in XML R
products.category_id Defined in XML R
revenue_line_items.category_id Defined in XML R
activities_users.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
list_order int 4  √  null
parent_id char 36  √  null
product_categories.id Defined in XML R
sync_key varchar 100  √  null
assigned_user_id char 36  √  null
users.id Defined in XML R

Analyzed at Thu Jun 17 07:30 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
assigned_user_id + deleted Performance Asc/Asc idx_product_categories_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_product_categories_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_product_categories_del_d_m  
id + deleted Performance Asc/Asc idx_product_categories_id_del  
name + deleted Performance Asc/Asc idx_product_categories_name_del  
sync_key Must be unique Asc idx_product_categories_skey This unique column is also nullable
id + parent_id + name + deleted Performance Asc/Asc/Asc/Asc idx_producttemplate_id_parent_name  

Close relationships  within of separation: