Table a018f09d.documents Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents
id char 36
document_revisions
documents
commentlog_rel
documents_revenuelineitems
documents_bugs
activities_users
tag_bean_rel
documents_contacts
documents_cases
linked_documents
documents_accounts
documents_products
documents_opportunities
documents_quotes
date_entered datetime 19  √  null
date_modified datetime 19  √  null
modified_user_id char 36  √  null
users
created_by char 36  √  null
users
description text 65535  √  null
deleted bit 1  √  0
document_name varchar 255  √  null
doc_id varchar 100  √  null
doc_type varchar 100  √  Sugar
doc_url varchar 255  √  null
active_date date 10  √  null
exp_date date 10  √  null
category_id varchar 100  √  null
subcategory_id varchar 100  √  null
status_id varchar 100  √  null
document_revision_id char 36  √  null
document_revisions
related_doc_id char 36  √  null
documents
related_doc_rev_id char 36  √  null
is_template bit 1  √  0
template_type varchar 100  √  null
sync_key varchar 100  √  null
assigned_user_id char 36  √  null
users
team_id char 36  √  null
teams
team_set_id char 36  √  null
team_sets
team_sets_teams

Analyzed at Thu Jul 01 08:02 UTC 2021

Indexes:
Column(s) Type Sort Anomalies
id Primary key Asc  
category_id + subcategory_id Performance Asc/Asc  
doc_type Performance Asc  
exp_date Performance Asc  
assigned_user_id + deleted Performance Asc/Asc  
deleted + date_entered + id Performance Asc/Asc/Asc  
deleted + date_modified + id Performance Asc/Asc/Asc  
id + deleted Performance Asc/Asc  
related_doc_id + deleted Performance Asc/Asc  
sync_key Must be unique Asc This unique column is also nullable
team_set_id + deleted Performance Asc/Asc  

Close relationships  within of separation: