Table ae06a3d1.contracts 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
notes.parent_id Defined in XML R
contracts_audit.parent_id Defined in XML R
contracts_contacts.contract_id Defined in XML R
linked_documents.parent_id Defined in XML R
tag_bean_rel.bean_id Defined in XML R
contracts_products.contract_id Defined in XML R
opportunities.id Defined in XML R
contracts_quotes.contract_id Defined in XML R
activities_users.parent_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
reference_code varchar 255  √  null
account_id char 36  √  null
accounts.id Defined in XML R
start_date date 10  √  null
end_date date 10  √  null
total_contract_value decimal 26,6  √  null
total_contract_value_usdollar decimal 26,6  √  null
status varchar 100  √  null
customer_signed_date date 10  √  null
company_signed_date date 10  √  null
expiration_notice datetime 19  √  null
type varchar 255  √  null
contract_types.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_teams.team_set_id Defined in XML R
team_sets.id Defined in XML R
currency_id char 36  √  -99
currencies.id Defined in XML R
base_rate decimal 26,6  √  null

Analyzed at Mon Sep 28 07:35 UTC 2020

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc PRIMARY  
end_date Performance Asc idx_contract_end_date  
name Performance Asc idx_contract_name  
start_date Performance Asc idx_contract_start_date  
status Performance Asc idx_contract_status  
assigned_user_id + deleted Performance Asc/Asc idx_contracts_assigned_del  
deleted + date_entered + id Performance Asc/Asc/Asc idx_contracts_del_d_e  
deleted + date_modified + id Performance Asc/Asc/Asc idx_contracts_del_d_m  
id + deleted Performance Asc/Asc idx_contracts_id_del  
name + deleted Performance Asc/Asc idx_contracts_name_del  
sync_key Must be unique Asc idx_contracts_skey This unique column is also nullable
team_set_id + deleted Performance Asc/Asc idx_contracts_tmst_id  

Close relationships  within of separation: