Table a94c27ef.purchases 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
notes.parent_id Defined in XML R
purchased_line_items.purchase_id Defined in XML R
tasks.parent_id Defined in XML R
locked_field_bean_rel.bean_id Defined in XML R
purchases_audit.parent_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
documents_purchases.purchase_id Defined in XML R
activities_users.parent_id Defined in XML R
contacts_purchases.purchase_id Defined in XML R
cases_purchases.purchase_id Defined in XML R
emails_beans.bean_id Defined in XML R
commentlog_rel.record_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
start_date date 10  √  null
end_date date 10  √  null
service bit 1  √  0
total_revenue decimal 26,6  √  null
total_quantity decimal 18,2  √  null
pli_count int 11  √  null
renewable bit 1  √  0
product_template_id char 36  √  null
product_templates.id Defined in XML R
account_id char 36  √  null
accounts.id Defined in XML R
type_id char 36  √  null
product_types.id Defined in XML R
category_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
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

Analyzed at Fri Jan 08 08:39 UTC 2021

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
acl_team_set_id + deleted Performance Asc/Asc idx_purchases_acl_tmst_id  
assigned_user_id + deleted Performance Asc/Asc idx_purchases_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_purchases_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_purchases_del_d_m  
id + deleted Performance Asc/Asc idx_purchases_id_del  
name + deleted Performance Asc/Asc idx_purchases_name_del  
sync_key Must be unique Asc idx_purchases_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_purchases_tmst_id  

Close relationships  within of separation: