Table a306954e.documents 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
document_revisions.document_id Defined in XML R
documents.related_doc_id Defined in XML R
documents_bugs.document_id Defined in XML R
documents_quotes.document_id Defined in XML R
documents_accounts.document_id Defined in XML R
documents_products.document_id Defined in XML R
documents_cases.document_id Defined in XML R
documents_opportunities.document_id Defined in XML R
documents_revenuelineitems.document_id Defined in XML R
commentlog_rel.record_id Defined in XML R
documents_contacts.document_id Defined in XML R
activities_users.parent_id Defined in XML R
linked_documents.document_id Defined in XML R
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
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.id Defined in XML R
related_doc_id char 36  √  null
documents.id Defined in XML R
related_doc_rev_id char 36  √  null
is_template bit 1  √  0
template_type 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

Analyzed at Tue Jan 07 09:03 UTC 2020

Indexes:
Column(s) Type Sort Constraint Name
id Primary key Asc PRIMARY
category_id + subcategory_id Performance Asc/Asc idx_doc_cat
doc_type Performance Asc idx_document_doc_type
exp_date Performance Asc idx_document_exp_date
assigned_user_id + deleted Performance Asc/Asc idx_documents_assigned_del
deleted + date_entered + id Performance Asc/Asc/Asc idx_documents_del_d_e
deleted + date_modified + id Performance Asc/Asc/Asc idx_documents_del_d_m
id + deleted Performance Asc/Asc idx_documents_id_del
related_doc_id + deleted Performance Asc/Asc idx_documents_related_doc_id_deleted
team_set_id + deleted Performance Asc/Asc idx_documents_tmst_id

Close relationships  within of separation: