Table stoq_schema.public.product_supplier_info 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 uuid 2147483647 uuid_generate_v1()
te_id int8 19  √  new_te()
transaction_entry.id product_supplier_info_te_id_fkey R
supplier_code text 2147483647  √  null
base_cost numeric 20,8  √  null
notes text 2147483647  √  null
is_main_supplier bool 1  √  null
icms numeric 10,2  √  null
lead_time int4 10  √  1
minimum_purchase numeric 20,3  √  1
supplier_id uuid 2147483647
supplier.id product_supplier_info_supplier_id_fkey R
product_id uuid 2147483647
product.id product_supplier_info_product_id_fkey R

Analyzed at Fri Jun 10 16:06 BRT 2016

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc product_supplier_info_pkey  
te_id Must be unique Asc product_supplier_info_te_id_key This unique column is also nullable
supplier_id + product_id + supplier_code Must be unique Asc/Asc/Asc unique_supplier_code  

Close relationships  within of separation: